1 #ifndef _GMX_QHOP_PARM_H
2 #define _GMX_QHOP_PARM_H
4 typedef struct gmx_qhop
*gmx_qhop_t
;
6 /* Return a new gmx_qhop structure */
7 extern gmx_qhop_t
gmx_qhop_init();
9 /* These function get and set the obvious */
10 extern void gmx_qhop_set_donor(gmx_qhop_t gqh
,char *donor
);
12 extern void gmx_qhop_set_acceptor(gmx_qhop_t gqh
,char *acceptor
);
14 extern char *gmx_qhop_get_donor(gmx_qhop_t gqh
);
16 extern char *gmx_qhop_get_acceptor(gmx_qhop_t gqh
);
18 /* Add parameter to gqh, return 1 if OK, 0 if not OK */
19 extern int gmx_qhop_add_param(gmx_qhop_t gqh
,char *name
,char *value
,char *unit
);
21 /* Lists the parameters, one by one on repeatedly calling the
22 function. Returns 1 if OK, 0 if not OK */
23 extern int gmx_qhop_get_param(gmx_qhop_t gqh
,char **name
,char **value
,char **unit
);
25 /* Return a value corresponding to name in *x. Return 1 of OK, 0 if
27 extern int gmx_qhop_get_value(gmx_qhop_t gqh
,char *name
,double *x
);
30 extern void gmx_qhop_done(gmx_qhop_t gqh
);