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
static const G4double e1[44]
#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_XYsToTOM(statusMessageReporting *smr, xDataXML_element *XE, xDataTOM_element *TE)
int xDataXML_stringToDoubles(statusMessageReporting *smr, xDataXML_element *XE, char const *s1, int length, double *d1)
static int xDataXML_XYsDataToTOM2(statusMessageReporting *smr, xDataXML_element *XE, xDataTOM_xDataInfo *xDI, int index, int length, double value, double accuracy)
int xDataXML_stringTo_double(statusMessageReporting *smr, void *smrUserInterface, char const *c, double *value, char const *endings, char **e)
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