12 #if defined __cplusplus
24 int dataProcessed = 0, length;
34 if( strcmp(
"axes", XMLChild->
name ) == 0 ) {
36 else if( strcmp(
"data", XMLChild->
name ) == 0 ) {
45 if( dataProcessed == 0 ) {
66 if(
xDataXML_XYsDataToTOM( smr, XE, XYs, index, length, value, accuracy,
xDataTOM_subAxesType_proxy, 0, &(xDI->
axes), NULL ) != 0 )
goto err;
84 if( ( XYs->
data = (
double *)
smr_malloc2( smr, 2 * length *
sizeof(
double ), 0,
"XYs->data" ) ) == NULL )
goto err;
98 char *e1 = (
char *) s1;
101 for( i1 = 0; i1 < length; i1++, d1++, s1 = e1 ) {
104 while( isspace( *e1 ) ) e1++;
112 #if defined __cplusplus
int xDataXML_stringTo_double(statusMessageReporting *smr, void *smrUserInterface, char const *c, double *value, char const *endings, char **e)
xDataTOM_Int xDataXML_convertAttributeTo_xDataTOM_Int(statusMessageReporting *smr, xDataXML_element *element, char const *name, xDataTOM_Int *n, int required)
int xDataXML_axesElememtToTOM(statusMessageReporting *smr, xDataXML_element *XE, xDataTOM_axes *axes)
int xDataXML_XYsToTOM(statusMessageReporting *smr, xDataXML_element *XE, xDataTOM_element *TE)
int xDataXML_stringToDoubles(statusMessageReporting *smr, xDataXML_element *XE, char const *s, int length, double *d)
xDataXML_element * xDataXML_getFirstElement(xDataXML_element *element)
xDataXML_element * xDataXML_getNextElement(xDataXML_element *element)
xDataTOM_element * element
char const * xDataTOM_XYs_ID
void * xDataXML_get_smrUserInterfaceFromElement(xDataXML_element *element)
xDataTOM_xDataInfo xDataInfo
#define smr_malloc2(smr, size, zero, forItem)
const XML_Char int const XML_Char * value
int xDataTOM_subAxes_initialize(statusMessageReporting *smr, xDataTOM_subAxes *subAxes, enum xDataTOM_subAxesType type, int offset, xDataTOM_axes *axes, xDataTOM_interpolation *interpolation)
static int xDataXML_XYsDataToTOM2(statusMessageReporting *smr, xDataXML_element *XE, xDataTOM_xDataInfo *xDI, int index, int length, double value, double accuracy)
void * smr_freeMemory(void **p)
int xDataXML_convertAttributeToDouble(statusMessageReporting *smr, xDataXML_element *element, char const *name, double *d, int required)
#define smr_setReportError3p(smr, userInterface, libraryID, code, fmt)
#define smr_setReportError3(smr, userInterface, libraryID, code, fmt,...)
int xDataXML_XYsDataToTOM(statusMessageReporting *smr, xDataXML_element *XE, xDataTOM_XYs *XYs, int index, int length, double value, double accuracy, enum xDataTOM_subAxesType subAxesType, int axesOffest, xDataTOM_axes *axes, xDataTOM_interpolation *interpolation)
int xDataTOM_smrLibraryID