ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
xDataTOM_importXML_private.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file xDataTOM_importXML_private.h
1 /*
2 # <<BEGIN-copyright>>
3 # <<END-copyright>>
4 */
5 #ifndef xDataTOM_importXML_private_h_included
6 #define xDataTOM_importXML_private_h_included
7 
8 #include <expat.h>
10 #include <xDataTOM_private.h>
11 
12 #if defined __cplusplus
13  extern "C" {
14  namespace GIDI {
15 #endif
16 
17 #ifndef XMLCALL
18 #define XMLCALL
19 #endif
20 
21 #ifndef XML_Char
22 #define XML_Char char
23 #endif
24 
25 #ifndef XML_Size
26 #define XML_Size long
27 #endif
28 
30 
35 
36 typedef struct xDataTOM_importXMLTOM_s xDataTOM_importXMLTOM;
48 
50  size_t line;
51  size_t column;
52 };
53 
55  char *name;
56  char *value;
57 };
58 
60  int number;
61  size_t size;
63 };
64 
67  size_t allocated;
68  size_t length;
69  char *text;
70 };
71 
73 typedef char *(*xDTXML_toStringFunction)( statusMessageReporting *smr, xDataXMLType * );
75 
78  const char *sortString;
79 };
80 
82  int n;
84 };
85 
88  const char *ID;
93  int indexPresent, startPresent, endPresent, lengthPresent;
94  xDataTOM_Int index, start, end, length;
95  void *data;
96 };
97 
102  int depth;
106 };
107 
110  int ordinal; /* Counting from 0. */
111  int index; /* Value from "index" attribute if present or -1 */
112  int accessed; /* For the convenience of the users, not used internally. */
116  char *name; /* Allocated in xData_parseAddElementToRoot. */
117  char *fullName; /* Allocated in xData_parseAddElementToRoot. */
118  xDataXML_attributionList attributes; /* attributes->abbributes is allocated in xData_parseAddElementToRoot. */
120  size_t textOffset;
122 };
123 
127 };
128 
133  XML_Size err_line, err_column;
134  char *fileName;
141 };
142 
147  size_t textOffset;
148  size_t textLength;
149  char *text;
150 };
151 
152 xDataTOM_TOM *xDataXML_importFile( statusMessageReporting *smr, char const *fileName );
153 xDataXML_document *xDataXML_importFile2( statusMessageReporting *smr, char const *fileName );
161 int xDataXML_isAttributeInList( xDataXML_attributionList *attributes, char const *name );
162 int xDataXML_isAttributeInElement( xDataXML_element *element, char const *name );
163 char *xDataXML_getAttributesValue( xDataXML_attributionList *attributes, char const *name );
164 char const *xDataXML_getAttributesValueInElement( xDataXML_element *element, char const *name );
168  xDataTOM_Int *length );
171 int xDataXML_convertAttributeToDouble( statusMessageReporting *smr, xDataXML_element *element, char const *name, double *d, int required );
172 int xDataXML_numberOfElementsByTagName( statusMessageReporting *smr, xDataXML_element *element, char const *tagName );
176 int xDataXML_is_xDataType( statusMessageReporting *smr, xDataXMLType *xDT, char const * const type, int setMsg );
177 char const *xDataXML_getFileName( xDataXML_document *doc );
178 char const *xDataXML_getRealFileName( xDataXML_document *doc );
182 int xDataXML_stringTo_xDataTOM_Int( statusMessageReporting *smr, void *smrUserInterface, char const *c, xDataTOM_Int *value, char const *endings, char **e );
183 int xDataXML_stringTo_double( statusMessageReporting *smr, void *smrUserInterface, char const *c, double *value, char const *endings, char **e );
184 int xDataXML_addToAccessed( statusMessageReporting *smr, xDataXML_element *element, int increment );
186 void *xDataXML_initializeData( statusMessageReporting *smr, xDataXML_element *XE, xDataTOM_element *TE, char const *ID, size_t size );
187 
188 /*
189 c Stuff in xDataTOM_importXML_axes.c
190 */
193 
194 /*
195 c Stuff in xDataTOM_importXML_XYs.c
196 */
198 int xDataXML_XYsDataToTOM( statusMessageReporting *smr, xDataXML_element *XE, xDataTOM_XYs *XYs, int index, int length, double value, double accuracy,
199  enum xDataTOM_subAxesType subAxesType, int axesOffest, xDataTOM_axes *axes, xDataTOM_interpolation *interpolation );
200 int xDataXML_stringToDoubles( statusMessageReporting *smr, xDataXML_element *XE, char const *s, int length, double *d );
201 
202 /*
203 c Stuff in xDataTOM_importXML_regionsXYs.c
204 */
206 
207 /*
208 c Stuff in xDataTOM_importXML_W_XYs.c
209 */
212  int axesOffset );
213 
214 /*
215 c Stuff in xDataTOM_importXML_V_W_XYs.c
216 */
218 
219 /*
220 c Stuff in xDataTOM_importXML_W_XYs_LegendreSeries.c
221 */
224 
225 /*
226 c Stuff in xDataTOM_importXML_regionsW_XYs_LegendreSeries.c
227 */
229 
230 /*
231 c Stuff in xDataTOM_importXML_V_W_XYs_LegendreSeries.c
232 */
234 
235 /*
236 c Stuff in xDataTOM_importXML_polynomial.c
237 */
239 
240 /*
241 c Stuff in xDataTOM_importXML_KalbachMann.c
242 */
244 
245 #if defined __cplusplus
246  }
247  }
248 #endif
249 
250 #endif /* End of xDataTOM_importXML_private_h_included. */