12 #if defined __cplusplus
38 if( strcmp(
"axes", XMLChild->
name ) == 0 ) {
40 else if( strcmp(
"region", XMLChild->
name ) == 0 ) {
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'" );
122 return(
xDataXML_XYsDataToTOM( smr, XE, XYs, index, length, 0., accuracy,
xDataTOM_subAxesType_intepolationAxes, 0, axes, interpolation ) );
125 #if defined __cplusplus
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)
void * xDataXML_initializeData(statusMessageReporting *smr, xDataXML_element *XE, xDataTOM_element *TE, char const *ID, size_t size)
xDataXML_element * xDataXML_getNextElement(xDataXML_element *element)
int xDataXML_numberOfElementsByTagName(statusMessageReporting *smr, xDataXML_element *element, char const *tagName)
void * xDataXML_get_smrUserInterfaceFromElement(xDataXML_element *element)
xDataTOM_xDataInfo xDataInfo
#define smr_malloc2(smr, size, zero, forItem)
char const * xDataTOM_regionsXYs_ID
int xDataTOM_interpolation_setFromString(statusMessageReporting *smr, xDataTOM_interpolation *interpolation, char const *str)
int xDataXML_convertAttributeToDouble(statusMessageReporting *smr, xDataXML_element *element, char const *name, double *d, int required)
int xDataXML_regionsXYsToTOM(statusMessageReporting *smr, xDataXML_element *XE, xDataTOM_element *TE)
#define smr_setReportError3p(smr, userInterface, libraryID, code, fmt)
#define smr_setReportError3(smr, userInterface, libraryID, code, fmt,...)
static int xDataXML_regionsXYs_regionToTOM(statusMessageReporting *smr, xDataXML_element *XE, xDataTOM_XYs *XYs, xDataTOM_axes *axes)
char const * xDataXML_getAttributesValueInElement(xDataXML_element *element, char const *name)
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
static int xDataXML_regionsXYs_XYsToTOM(statusMessageReporting *smr, xDataXML_element *XE, xDataTOM_XYs *XYs, xDataTOM_axes *axes, xDataTOM_interpolation *interpolation, int index, int length, double accuracy)