12#if defined __cplusplus
38 if( strcmp(
"axes", XMLChild->
name ) == 0 ) {
40 else if( strcmp(
"region", XMLChild->
name ) == 0 ) {
41 if( xDataXML_regionsXYs_regionToTOM( smr, XMLChild, &(regionsXYs->
XYs[index]), regionsXYs->
axes ) != 0 )
goto err;
45 "invalid element '%s' in xData 'regionsXYs'", XMLChild->
name );
63 xDataXML_element *XMLChild, *interpolationAxesElement = NULL, *dataElement = NULL;
65 char const *sInterpolation;
72 if( strcmp(
"interpolationAxes", XMLChild->
name ) == 0 ) {
73 if( interpolationAxesElement != NULL ) {
75 "multiple %s elements in element 'region'", XMLChild->
name );
78 interpolationAxesElement = XMLChild; }
79 else if( strcmp(
"data", XMLChild->
name ) == 0 ) {
80 if( dataElement != NULL ) {
82 "multiple %s elements in element 'region'", XMLChild->
name );
85 dataElement = XMLChild; }
88 "invalid element '%s' in element 'region'", XMLChild->
name );
92 if( interpolationAxesElement == NULL ) {
94 "missing 'interpolationAxes' element in element 'region'" );
99 "missing attribute 'interpolation'" );
103 if( dataElement == NULL ) {
105 "missing 'data' element in element 'region'" );
108 xDataXML_regionsXYs_XYsToTOM( smr, dataElement, XYs, axes, &interpolation, index, length, accuracy );
122 return(
xDataXML_XYsDataToTOM( smr, XE, XYs, index, length, 0., accuracy,
xDataTOM_subAxesType_intepolationAxes, 0, axes, interpolation ) );
125#if defined __cplusplus
#define smr_setReportError3(smr, userInterface, libraryID, code, fmt,...)
#define smr_setReportError3p(smr, userInterface, libraryID, code, fmt)
#define smr_malloc2(smr, size, zero, forItem)
xDataTOM_xDataInfo xDataInfo
int xDataTOM_interpolation_setFromString(statusMessageReporting *smr, xDataTOM_interpolation *interpolation, char const *str)
@ xDataTOM_subAxesType_intepolationAxes
void * xDataXML_initializeData(statusMessageReporting *smr, xDataXML_element *XE, xDataTOM_element *TE, char const *ID, size_t size)
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)
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)
char const * xDataXML_getAttributesValueInElement(xDataXML_element *element, char const *name)
xDataXML_element * xDataXML_getFirstElement(xDataXML_element *element)
int xDataXML_regionsXYsToTOM(statusMessageReporting *smr, xDataXML_element *XE, xDataTOM_element *TE)
int xDataXML_numberOfElementsByTagName(statusMessageReporting *smr, xDataXML_element *element, char const *tagName)
int xDataXML_convertAttributeToDouble(statusMessageReporting *smr, xDataXML_element *element, char const *name, double *d, int required)
char const * xDataTOM_regionsXYs_ID
int xDataTOM_smrLibraryID