libpHtools: The pHtools C API  1.0.0
Access pHtools XML databases and compute complex acid/base buffer properties.
 All Classes Files Functions Variables Pages
pHtools_parse.h
Go to the documentation of this file.
1 #ifndef _pHtools_parse_h_
2 #define _pHtools_parse_h_
3 
10 /*#define MAXODE1 4999
11 #define MAXODE 4999
12 #define MAXVNAM 33
13 */
14 
15 #include "pHtools.h"
16 
17 #include <libxml/xmlreader.h>
18 #include <libxml/parser.h>
19 #include <libxml/tree.h>
20 
21 
22 typedef struct {
23  int nnodes;
24  xmlNode *node[100];
25 } NODEARRAY;
26 
27 
28 /* pHtools_parse.c */
29 void getAttributeByName(xmlNode *element, char *att, char *name);
30 void getCreatedOn(char *att, xmlDoc *doc);
31 void getCreatedBy(char *att, xmlDoc *doc);
32 void getNickname(char *att, xmlDoc *doc);
33 void getName(char *att, xmlDoc *doc);
34 void getEnabled(char *att, xmlDoc *doc);
35 void get_elements_named(char *name, xmlNode *a_node, NODEARRAY *array);
36 void getBufferComment(char *text, xmlDoc *doc);
37 int getExperiments(NODEARRAY *myarray, xmlDoc *doc);
38 int IsXMLFile(char *path);
39 int search_xml_buffer_database(BUFFERCOMP *newbufferDb, char *requested);
40 void fqdnbasename(char *dest, char *src);
41 int match_query(char *nickname, char *requested);
42 int IsBufferStorage(xmlDoc *doc);
43 void char2arrarr(BUFFERION *group, int *ngroups, char *text, int type, double weight, int overwrite);
44 void getGroups(BUFFERCOMP *target, xmlNode *expnode, double weight, int overwrite);
45 void getContained(BUFFERCOMP *target, xmlNode *expnode, double weight, int overwrite);
46 void crunchStorage(xmlDoc *doc, BUFFERCOMP *buffercom);
47 int main_alt2(int argc, char **argv);
48 
49 #endif