51 data =
new char[strlen(newdata)+1];
54 NAMD_die(
"new failed in struct StringList");
56 strcpy(
data, newdata);
59 void set(
const char *newdata) {
61 data =
new char[strlen(newdata)+1];
64 NAMD_die(
"new failed in struct StringList");
66 strcpy(
data, newdata);
86 name =
new char[strlen(newname)+1];
89 NAMD_die(
"new failed in ConfigListNode::ConfigListNode");
91 strcpy((
char *)
name, newname);
104 next_local = curr->
next;
111 ConfigListNode *theList;
114 ConfigListNode *find_key_word(
const char *keyword)
const;
118 void add_element(
const char *s1,
int len1,
const char *s2,
int len2);
132 #endif // CONFIGLIST_H void add_element(const char *s1, int len1, const char *s2, int len2)
ConfigListNode * head(void) const
StringList(char *newdata)
void NAMD_die(const char *err_msg)
StringList * find(const char *name) const
ConfigListNode(ConfigListNode *newnext, char *newname, StringList *newdata)