17 MGFElem* found = NULL;
20 while (found == NULL && cur != NULL) {
21 if (!strcasecmp((cur->elem).gridforceKey,key)) {
28 result = &(found->elem);
36 MGFElem* found = NULL;
40 while (found == NULL && cur != NULL) {
41 if (!strcasecmp((cur->elem).gridforceKey,key)) {
57 MGFElem* found = NULL;
61 while (found == NULL && cur != NULL) {
70 result = &(found->elem);
83 MGFElem* new_elem =
new MGFElem();
84 int len = strlen(key);
99 tail->elem.next = elem;
110 msg->
put(n_elements);
112 while (elem != NULL) {
152 msg->
put(6,boolvals);
158 NAMD_die(
"MGridforceParams message packing error\n");
168 for(
int i=0; i < elements; i++) {
172 char *key =
new char[len];
177 char *str =
new char[len];
196 msg->
get(qcol_is_null);
210 msg->
get(6,boolvals);
MIStream * get(char &data)
MGridforceParams * get_first()
int index_for_key(const char *key)
MGridforceParams * find_key(const char *key)
void NAMD_die(const char *err_msg)
void unpack_data(MIStream *msg)
MGridforceParams * add(const char *key)
MOStream * put(char data)
void pack_data(MOStream *msg)
MGridforceParams * at_index(int idx)