36#ifndef xData_h_included
37#define xData_h_included
39#if defined __cplusplus
46#if defined __cplusplus
161 signed char indexPresent, startPresent,
endPresent, lengthPresent;
313#define xData_malloc2( smr, size, zero, forItem ) xData_malloc( smr, size, zero, forItem, __FILE__, __LINE__ )
314#define xData_realloc2( smr, old, size, forItem ) xData_realloc( smr, old, size, forItem, __FILE__, __LINE__ )
315#define xDataMisc_allocateCopyString2( smr, s, forItem ) xDataMisc_allocateCopyString( smr, s, forItem, __FILE__, __LINE__ )
317#if defined __cplusplus
int(* smr_userInterface)(void *userData, char **smr)
enum xData_xDataType status
xDT_releaseFunction release
xDT_toStringFunction toString
xDT_toDataFunction toData
xData_attribute * attributes
statusMessageReporting * smr
void * xDataTypeOk_userData
xData_rootElement * currentRoot
xData_xDataTypeOk xDataTypeOk_userFunction
xData_smr smrUserInterface
enum xData_errorCodes error
xData_elementListItem * items
xData_attributionList attributes
xData_rootElement * parentRoot
xData_rootElement childrenRoot
xData_element * parentElement
xData_matrix_rowStartEnd * rowStartEnds
xData_document * xData_doc
xData_element * currentChild
xData_rootElement * parentRoot
xData_element * parentElement
smr_userInterface smrUserInterface
char const * xData_getFileName(xData_document *doc)
int xData_is_2d_xindex_y(statusMessageReporting *smr, xDataType *xDT, int setMsg)
xData_matrix * xData_matrix_copyData(statusMessageReporting *smr, xData_element *element)
int xData_convertAttributeToDouble(statusMessageReporting *smr, xData_element *element, const char *name, double *d)
void * xData_free(statusMessageReporting *smr, void *p)
int xData_stringTo_double(statusMessageReporting *smr, void *smrUserInterface, char const *c, double *value, char const *endings, char **e)
void * xData_get_smrUserInterfaceFromElement(xData_element *element)
enum xData_itemMode xData_getFirstItem(xData_element *element, xData_item *item)
void xData_freeElementList(statusMessageReporting *smr, xData_elementList *list)
int xData_init_2d_xShared_yHistogram(statusMessageReporting *smr, xData_element *element)
int xData_isElement_matrix(statusMessageReporting *smr, xData_element *element, int setMsg)
int xData_getAccessed(statusMessageReporting *smr, xData_element *element)
xData_document * xData_getElementsDocument(xData_element *element)
int xData_initializeAttributionList(statusMessageReporting *smr, xData_attributionList *attributes)
double * xData_2d_xindex_y_toXYs(statusMessageReporting *smr, xData_element *element, double *Xs)
char * xDataMisc_getAbsPath(statusMessageReporting *smr, const char *fileName)
char * xDataMisc_allocateCopyString(statusMessageReporting *smr, const char *s, const char *forItem, const char *routine, int line)
int getRowStartEndAtIndex(statusMessageReporting *smr, xDataType *xDT, xData_Int index, xData_Int *row, xData_Int *start, xData_Int *end)
xData_elementList * xData_getElementsByTagNameAndSort(statusMessageReporting *smr, xData_element *element, const char *tagName, const char *sortAttributeName, xData_sortElementFunc sortFunction)
int(* xData_sortElementFunc)(const void *, const void *)
int xData_is_xDataType(statusMessageReporting *smr, xDataType *xDT, char const *const type, int setMsg)
int xData_1d_x_free_copyData(statusMessageReporting *smr, void *data)
int xData_init_1d_x(statusMessageReporting *smr, xData_element *element)
int xData_init_matrix(statusMessageReporting *smr, xData_element *element)
void * xData_get_smrUserInterfaceFromDocument(xData_document *doc)
int xData_numberOfElementsByTagName(statusMessageReporting *smr, xData_element *element, const char *tagName)
int(* xDT_toDataFunction)(statusMessageReporting *smr, xDataType *, xData_attributionList *, const char *)
int xData_is_2d_xy(statusMessageReporting *smr, xDataType *xDT, int setMsg)
char const *const xData_matrix_ID
int(* xDT_releaseFunction)(statusMessageReporting *smr, xDataType *)
int xData_copyAttributionList(statusMessageReporting *smr, xData_attributionList *dest, xData_attributionList *src)
int xData_isElement_1d_x(statusMessageReporting *smr, xData_element *element, int setMsg)
xData_attribute * xData_attributeByIndex(xData_attributionList *attributes, int index)
double * xData_2d_xindex_y_toFilledYs(statusMessageReporting *smr, xData_element *element, double *Xs)
char *(* xDT_toStringFunction)(statusMessageReporting *smr, xDataType *)
int xData_isElement_2d_xShared_yHistogram(statusMessageReporting *smr, xData_element *element, int setMsg)
int(* xData_xDataTypeOk)(char const *name, xData_document *doc, void *userData)
int xData_stringTo_xData_Int(statusMessageReporting *smr, void *smrUserInterface, char const *c, xData_Int *value, char const *endings, char **e)
int xData_1d_x_copyData(statusMessageReporting *smr, xData_element *element, xData_Int nAllocatedBytes, double *d)
int xData_parseInitialize(statusMessageReporting *smr, xData_document *xData_doc, xData_xDataTypeOk func, void *userData)
int xData_is_2d_xShared_yHistogram(statusMessageReporting *smr, xDataType *xDT, int setMsg)
enum xData_itemMode xData_getNextItem(xData_item *item)
int xData_matrix_free_copyData(statusMessageReporting *smr, void *data)
const char * xData_getAttributesValueInElement(xData_element *element, const char *name)
int xData_is_matrix(statusMessageReporting *smr, xDataType *xDT, int setMsg)
int xData_releaseAttributionList(statusMessageReporting *smr, xData_attributionList *attributes)
char const *const xData_twod_xindex_y_ID
double * xData_2d_xShared_yHistogram_toFilledXYs(xDataType *xDT, xData_Int nXs, double *Xs)
int xData_is_1d_x(statusMessageReporting *smr, xDataType *xDT, int setMsg)
xData_element * xData_getOneElementByTagName(statusMessageReporting *smr, xData_element *element, char *name, int required)
int xData_addToAccessed(statusMessageReporting *smr, xData_element *element, int increment)
xData_document * xData_parseString(statusMessageReporting *smr, const char *str, xData_xDataTypeOk func, void *userData)
int xData_setFileName(statusMessageReporting *smr, xData_document *doc, char const *fileName)
int xData_xDataTypeConvertAttributes(statusMessageReporting *smr, xData_element *element)
void * xData_parseFree(statusMessageReporting *smr, xData_document *xData_doc)
xData_Int xData_convertAttributeTo_xData_Int(statusMessageReporting *smr, xData_element *element, const char *name, xData_Int *n)
double * xData_2d_xShared_yHistogram_copyData(statusMessageReporting *smr, xData_element *element, xData_Int *n)
int xData_isElement_2d_xy(statusMessageReporting *smr, xData_element *element, int setMsg)
xData_element * xData_getNextElement(xData_element *element)
xData_elementList * xData_getElementsByTagName(statusMessageReporting *smr, xData_element *element, const char *tagName)
int xData_2d_xy_free_copyData(statusMessageReporting *smr, void *data)
xData_element * xData_getDocumentsElement(xData_document *xData_doc)
xData_element * xData_getFirstElement(xData_element *element)
xData_document * xData_parseReadFile(statusMessageReporting *smr, const char *fileName, xData_xDataTypeOk func, void *userData)
int xData_getCommonData(statusMessageReporting *smr, xData_element *element, xData_Int *index, xData_Int *start, xData_Int *end, xData_Int *length)
int xData_setMessageError_ReturnInt(int value, statusMessageReporting *smr, void *userData, const char *file, int line, int code, const char *fmt,...)
void * xData_malloc(statusMessageReporting *smr, size_t size, int zero, const char *forItem, const char *file, int line)
@ xData_errXML_ParserCreate
int xData_2d_xindex_y_free_rawIndices(statusMessageReporting *smr, void *data)
char const *const xData_twod_xShared_yHistogram_ID
char * xData_getAttributesValue(xData_attributionList *attributes, const char *name)
double * xData_2d_xy_allocateCopyData(statusMessageReporting *smr, xData_element *element, xData_Int *length)
int xData_parseEndOfXML(statusMessageReporting *smr, xData_document *xData_doc)
xData_document * xData_parseMalloc(statusMessageReporting *smr, xData_xDataTypeOk func, void *userData)
char const *const xData_twod_xy_ID
xData_Int * xData_2d_xindex_y_rawIndices(statusMessageReporting *smr, xData_element *element)
int xData_attributeListLength(xData_attributionList *attributes)
int xData_2d_xShared_yHistogram_free_copyData(statusMessageReporting *smr, void *data)
void * xData_realloc(statusMessageReporting *smr, void *pOld, size_t size, const char *forItem, const char *routine, int line)
int xData_2d_xindex_y_free_toFilledYs(statusMessageReporting *smr, void *data)
char const *const xData_oned_x_ID
int xData_init_2d_xindex_y(statusMessageReporting *smr, xData_element *element)
double * xData_2d_xindex_y_toFilledXYs(statusMessageReporting *smr, xData_element *element, double *Xs)
int xData_isElement_2d_xindex_y(statusMessageReporting *smr, xData_element *element, int setMsg)
xData_element * xData_getElements_xDataElement(statusMessageReporting *smr, xData_element *element)
@ xData_xDataType_ConvertingToData
@ xData_xDataType_ConvertingToString
double * xData_1d_x_allocateCopyData(statusMessageReporting *smr, xData_element *element)
int xData_parse(xData_document *xData_doc, const char *s)
int xData_parseIsError(xData_document *xData_doc)
int xData_init_2d_xy(statusMessageReporting *smr, xData_element *element)