12#if defined __cplusplus
24 int dataProcessed = 0, length;
34 if( strcmp(
"axes", XMLChild->
name ) == 0 ) {
36 else if( strcmp(
"data", XMLChild->
name ) == 0 ) {
42 if( xDataXML_XYsDataToTOM2( smr, XMLChild, xDI, -1, length, 0., accuracy ) != 0 )
goto err;
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
#define smr_setReportError3(smr, userInterface, libraryID, code, fmt,...)
void * smr_freeMemory(void **p)
#define smr_setReportError3p(smr, userInterface, libraryID, code, fmt)
#define smr_malloc2(smr, size, zero, forItem)
xDataTOM_xDataInfo xDataInfo
xDataTOM_element * element
@ xDataTOM_subAxesType_proxy
int xDataTOM_subAxes_initialize(statusMessageReporting *smr, xDataTOM_subAxes *subAxes, enum xDataTOM_subAxesType type, int offset, xDataTOM_axes *axes, xDataTOM_interpolation *interpolation)
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 xDataXML_stringToDoubles(statusMessageReporting *smr, xDataXML_element *XE, char const *s, int length, double *d)
int xDataXML_stringTo_double(statusMessageReporting *smr, void *smrUserInterface, char const *c, double *value, char const *endings, char **e)
int xDataXML_XYsToTOM(statusMessageReporting *smr, xDataXML_element *XE, xDataTOM_element *TE)
void * xDataXML_get_smrUserInterfaceFromElement(xDataXML_element *element)
xDataXML_element * xDataXML_getNextElement(xDataXML_element *element)
xDataTOM_Int xDataXML_convertAttributeTo_xDataTOM_Int(statusMessageReporting *smr, xDataXML_element *element, char const *name, xDataTOM_Int *n, int required)
xDataXML_element * xDataXML_getFirstElement(xDataXML_element *element)
int xDataXML_axesElememtToTOM(statusMessageReporting *smr, xDataXML_element *XE, xDataTOM_axes *axes)
int xDataXML_convertAttributeToDouble(statusMessageReporting *smr, xDataXML_element *element, char const *name, double *d, int required)
char const * xDataTOM_XYs_ID
int xDataTOM_smrLibraryID