80 name = n ? strdup (n) : NULL;
97 property * p =
new property (n, val);
115 property * p =
new property (n, val);
135 sprintf (prop,
"Scaled:%s", n);
142 property * p =
new property (n, val);
187 sprintf (txt,
"Scaled:%s", n);
216 if (p != NULL && !p->isDefault ())
return true;
225 while (org != NULL) {
252 ptxt = (
char *) malloc (len);
ptxt[0] =
'\0';
254 char *
n = p->getName ();
255 char * val = p->toString ();
256 char * text = (
char *) malloc (strlen (n) + strlen (val) + 4);
257 sprintf (text,
"%s=\"%s\"", n, val);
258 len += strlen (text);
259 ptxt = (
char *) realloc (
ptxt, len);
261 if (p->getNext () != NULL) strcat (
ptxt,
" ");
void setProperty(const char *, char *)
void setNext(property *p)
char * getPropertyReference(const char *)
property * findProperty(const char *)
nr_double_t getPropertyDouble(const char *)
int getPropertyInteger(const char *)
bool hasProperty(const char *)
char * getReference(void)
nr_double_t getScaledProperty(const char *)
bool isPropertyGiven(const char *)
void setScaledProperty(const char *, nr_double_t)
vector * getPropertyVector(const char *)
int countProperties(void)
void setName(const char *)
void deleteProperties(void)
void addProperty(property *)
qucs::vector * getVector(void)
nr_double_t getDouble(void)
char * propertyList(void)
char * getPropertyString(const char *)
void copyProperties(property *)