112 if (next) next->
setPrev (prev);
122 next = (
vector *)
t->getNext ();
147 next = (
vector *)
t->getNext ();
170 if (next) next->
setPrev (prev);
180 next = (
vector *)
t->getNext ();
205 next = (
vector *)
t->getNext ();
217 next = (
vector *)
t->getNext ();
218 if (
t->getDependencies () == NULL) {
219 t->setDependencies (
new strlist (*deps));
232 if (origin != NULL && n != NULL && !strcmp (n, origin))
237 if (origin != NULL && n != NULL && !strcmp (n, origin))
247 char *
n =
v->getOrigin ();
248 if (n != NULL && origin != NULL && !strcmp (origin, n)) {
249 strlist * deplist =
v->getDependencies ();
250 if (deplist != NULL) {
257 deplist->
add (depvar);
258 v->setDependencies (deplist);
267 if (
v == dep)
return 1;
274 if (
v == var)
return 1;
283 if (!strcmp (
v->getName (),
n))
294 if (!strcmp (
v->getName (),
n))
325 file = f ? strdup (f) : NULL;
337 if ((f = fopen (
file,
"w")) == NULL) {
339 file, strerror (errno));
345 fprintf (f,
"<Qucs Dataset " PACKAGE_VERSION
">\n");
354 if (
v->getDependencies () != NULL)
361 if (
file) fclose (f);
372 fprintf (f,
"</indep>\n");
379 fprintf (f,
"<dep %s", v->
getName ());
382 fprintf (f,
" %s", *it);
390 fprintf (f,
"</dep>\n");
399 if (
imag (c) == 0.0) {
400 fprintf (f,
" %+." NR_DECS
"e\n", (
double)
real (c));
403 fprintf (f,
" %+." NR_DECS
"e%cj%." NR_DECS
"e\n", (
double)
real (c),
404 imag (c) >= 0.0 ?
'+' :
'-', (
double) fabs (
imag (c)));
414 if ((f = fopen (file,
"r")) == NULL) {
442 if ((f = fopen (file,
"r")) == NULL) {
467 if ((f = fopen (file,
"r")) == NULL) {
492 if ((f = fopen (file,
"r")) == NULL) {
517 if ((f = fopen (file,
"r")) == NULL) {
542 if ((f = fopen (file,
"r")) == NULL) {
static dataset * load_zvr(const char *)
void addDependency(qucs::vector *)
std::complex< nr_double_t > nr_complex_t
__BEGIN_DECLS int dataset_parse(void)
matrix real(matrix a)
Real part matrix.
__BEGIN_DECLS int csv_parse(void)
int dataset_check(dataset *data)
void applyDependencies(qucs::vector *v)
void printVariable(qucs::vector *, FILE *)
void printDependency(qucs::vector *, FILE *)
void printData(qucs::vector *, FILE *)
static dataset * load_csv(const char *)
int mdl_lex_destroy(void)
static dataset * load_mdl(const char *)
void appendVariable(qucs::vector *)
void addVariables(qucs::vector *)
void delDependency(qucs::vector *)
matrix imag(matrix a)
Imaginary part matrix.
void addDependencies(qucs::vector *)
int touchstone_lex_destroy(void)
int zvr_lex_destroy(void)
void dataset_restart(FILE *)
void delVariable(qucs::vector *)
static dataset * load_citi(const char *)
qucs::vector * findOrigin(char *)
int isVariable(qucs::vector *)
void addVariable(qucs::vector *)
int touchstone_parse(void)
static dataset * load(const char *)
static dataset * load_touchstone(const char *)
void appendDependency(qucs::vector *)
qucs::vector * dependencies
int csv_lex_destroy(void)
void appendDependencies(qucs::vector *)
int citi_lex_destroy(void)
qucs::dataset * citi_result
void assignDependency(char *, char *)
int touchstone_check(void)
qucs::vector * findDependency(const char *)
void appendVariables(qucs::vector *)
void citi_restart(FILE *)
qucs::vector * findVariable(const char *)
void logprint(int level, const char *format,...)
strlist * getDependencies(void)
int isDependency(qucs::vector *)
void touchstone_restart(FILE *)
dataset * touchstone_result
int countDependencies(void)
void setFile(const char *)
int dataset_lex_destroy(void)