Geant4  10.02.p01
xDataTOM.cc File Reference
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
#include <unistd.h>
#include "xDataTOM_importXML_private.h"
#include "xDataTOM_private.h"
+ Include dependency graph for xDataTOM.cc:

Go to the source code of this file.

Macros

#define PATH_MAX   4096
 

Functions

static int xDataTOME_initializeElement (statusMessageReporting *smr, xDataTOM_element *element, xDataTOM_element *parent, int ordinal, int index, char const *name)
 
static void xDataTOME_displayTree (statusMessageReporting *smr, xDataTOM_element *element, int printAttributes, int level)
 
static int xDataTOM_initialize_xData (statusMessageReporting *smr, xDataTOM_xDataInfo *xDataInfo)
 
xDataTOM_TOM * xDataTOM_importFile (statusMessageReporting *smr, const char *fileName)
 
xDataTOM_TOM * xDataTOM_mallocTOM (statusMessageReporting *smr)
 
int xDataTOM_initializeTOM (statusMessageReporting *smr, xDataTOM_TOM *TOM)
 
void * xDataTOM_freeTOM (statusMessageReporting *, xDataTOM_TOM **TOM)
 
int xDataTOM_setFileNameTOM (statusMessageReporting *smr, xDataTOM_TOM *TOM, const char *fileName)
 
void xDataTOM_displayTree (statusMessageReporting *smr, xDataTOM_TOM *TOM, int printAttributes)
 
xDataTOM_element * xDataTOM_mallocElement (statusMessageReporting *smr, xDataTOM_element *parent, int ordinal, int index, char const *name)
 
void xDataTOM_freeElement (xDataTOM_element **element)
 
void xDataTOM_releaseElement (xDataTOM_element *element)
 
xDataTOM_element * xDataTOM_addElementInElement (statusMessageReporting *smr, xDataTOM_element *parent, int index, char const *name)
 
xDataTOM_element * xDataTOM_getDocumentsElement (xDataTOM_TOM *TOM)
 
xDataTOM_element * xDataTOME_getFirstElement (xDataTOM_element *element)
 
xDataTOM_element * xDataTOME_getNextElement (xDataTOM_element *element)
 
xDataTOM_element * xDataTOME_getOneElementByName (statusMessageReporting *smr, xDataTOM_element *element, char const *name, int required)
 
int xDataTOM_numberOfElementsByName (statusMessageReporting *, xDataTOM_element *element, char const *name)
 
int xDataTOME_addAttribute (statusMessageReporting *smr, xDataTOM_element *element, char const *name, char const *value)
 
char const * xDataTOM_getAttributesValueInElement (xDataTOM_element *element, char const *name)
 
int xDataTOME_copyAttributionList (statusMessageReporting *smr, xDataTOM_attributionList *desc, xDataTOM_element *element)
 
int xDataTOME_convertAttributeToInteger (statusMessageReporting *smr, xDataTOM_element *element, char const *name, int *n)
 
int xDataTOME_convertAttributeToDouble (statusMessageReporting *smr, xDataTOM_element *element, char const *name, double *d)
 
int xDataTOME_getInterpolation (statusMessageReporting *smr, xDataTOM_element *element, int index, enum xDataTOM_interpolationFlag *independent, enum xDataTOM_interpolationFlag *dependent, enum xDataTOM_interpolationQualifier *qualifier)
 
void xDataTOMAL_initial (statusMessageReporting *, xDataTOM_attributionList *attributes)
 
void xDataTOMAL_release (xDataTOM_attributionList *attributes)
 
int xDataTOMAL_addAttribute (statusMessageReporting *smr, xDataTOM_attributionList *attributes, char const *name, char const *value)
 
char const * xDataTOMAL_getAttributesValue (xDataTOM_attributionList *attributes, char const *name)
 
int xDataTOMAL_copyAttributionList (statusMessageReporting *smr, xDataTOM_attributionList *desc, xDataTOM_attributionList *src)
 
int xDataTOMAL_convertAttributeToInteger (statusMessageReporting *smr, xDataTOM_attributionList *attributes, char const *name, int *n)
 
int xDataTOMAL_convertAttributeToDouble (statusMessageReporting *smr, xDataTOM_attributionList *attributes, char const *name, double *d)
 
void * xData_initializeData (statusMessageReporting *smr, xDataTOM_element *TE, char const *ID, size_t size)
 
int xDataTOM_isXDataID (xDataTOM_element *TE, char const *ID)
 
xDataTOM_xDataInfo * xDataTOME_getXData (xDataTOM_element *TE)
 
void * xDataTOME_getXDataIfID (statusMessageReporting *smr, xDataTOM_element *TE, char const *ID)
 

Variables

int xDataTOM_smrLibraryID = smr_unknownID
 

Macro Definition Documentation

#define PATH_MAX   4096

Definition at line 31 of file xDataTOM.cc.

Referenced by xDataTOM_setFileNameTOM().

Function Documentation

void* xData_initializeData ( statusMessageReporting *  smr,
xDataTOM_element *  TE,
char const *  ID,
size_t  size 
)

Definition at line 479 of file xDataTOM.cc.

Referenced by xDataXML_initializeData().

+ Here is the caller graph for this function:

xDataTOM_element* xDataTOM_addElementInElement ( statusMessageReporting *  smr,
xDataTOM_element *  parent,
int  index,
char const *  name 
)

Definition at line 188 of file xDataTOM.cc.

References xDataTOM_mallocElement().

Referenced by xDataXML_constructTOM().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void xDataTOM_displayTree ( statusMessageReporting *  smr,
xDataTOM_TOM *  TOM,
int  printAttributes 
)

Definition at line 114 of file xDataTOM.cc.

References xDataTOME_displayTree().

+ Here is the call graph for this function:

void xDataTOM_freeElement ( xDataTOM_element **  element)

Definition at line 139 of file xDataTOM.cc.

References smr_freeMemory(), and xDataTOM_releaseElement().

Referenced by xDataTOM_releaseElement().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void* xDataTOM_freeTOM ( statusMessageReporting *  ,
xDataTOM_TOM **  TOM 
)

Definition at line 78 of file xDataTOM.cc.

References smr_freeMemory(), and xDataTOM_releaseElement().

Referenced by MCGIDI_target_heated_read(), and xDataXML_importFile().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

xDataTOM_element* xDataTOM_getDocumentsElement ( xDataTOM_TOM *  TOM)

Definition at line 223 of file xDataTOM.cc.

Referenced by MCGIDI_target_heated_read().

+ Here is the caller graph for this function:

xDataTOM_TOM* xDataTOM_importFile ( statusMessageReporting *  smr,
const char *  fileName 
)

Definition at line 44 of file xDataTOM.cc.

References xDataXML_importFile().

Referenced by MCGIDI_target_heated_read().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int xDataTOM_initialize_xData ( statusMessageReporting *  smr,
xDataTOM_xDataInfo *  xDataInfo 
)
static

Definition at line 472 of file xDataTOM.cc.

Referenced by xDataTOME_initializeElement().

+ Here is the caller graph for this function:

int xDataTOM_initializeTOM ( statusMessageReporting *  smr,
xDataTOM_TOM *  TOM 
)

Definition at line 68 of file xDataTOM.cc.

References smr_isOk(), and xDataTOME_initializeElement().

Referenced by xDataTOM_mallocTOM().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int xDataTOM_isXDataID ( xDataTOM_element *  TE,
char const *  ID 
)

Definition at line 491 of file xDataTOM.cc.

xDataTOM_element* xDataTOM_mallocElement ( statusMessageReporting *  smr,
xDataTOM_element *  parent,
int  ordinal,
int  index,
char const *  name 
)

Definition at line 125 of file xDataTOM.cc.

References smr_freeMemory(), and xDataTOME_initializeElement().

Referenced by xDataTOM_addElementInElement().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

xDataTOM_TOM* xDataTOM_mallocTOM ( statusMessageReporting *  smr)

Definition at line 54 of file xDataTOM.cc.

References smr_freeMemory(), and xDataTOM_initializeTOM().

Referenced by xDataXML_importFile().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int xDataTOM_numberOfElementsByName ( statusMessageReporting *  ,
xDataTOM_element *  element,
char const *  name 
)

Definition at line 268 of file xDataTOM.cc.

References n, xDataTOME_getFirstElement(), and xDataTOME_getNextElement().

Referenced by MCGIDI_outputChannel_parseFromTOM(), and MCGIDI_target_heated_read().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void xDataTOM_releaseElement ( xDataTOM_element *  element)
int xDataTOM_setFileNameTOM ( statusMessageReporting *  smr,
xDataTOM_TOM *  TOM,
const char *  fileName 
)

Definition at line 94 of file xDataTOM.cc.

References PATH_MAX, and smr_freeMemory().

Referenced by xDataXML_importFile().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int xDataTOMAL_addAttribute ( statusMessageReporting *  smr,
xDataTOM_attributionList *  attributes,
char const *  name,
char const *  value 
)

Definition at line 376 of file xDataTOM.cc.

References smr_freeMemory().

Referenced by MCGIDI_misc_copyXMLAttributesToTOM(), xDataTOMAL_copyAttributionList(), and xDataTOME_addAttribute().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int xDataTOMAL_convertAttributeToDouble ( statusMessageReporting *  smr,
xDataTOM_attributionList *  attributes,
char const *  name,
double *  d 
)

Definition at line 450 of file xDataTOM.cc.

References xDataTOMAL_getAttributesValue().

Referenced by xDataTOME_convertAttributeToDouble().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int xDataTOMAL_convertAttributeToInteger ( statusMessageReporting *  smr,
xDataTOM_attributionList *  attributes,
char const *  name,
int *  n 
)

Definition at line 433 of file xDataTOM.cc.

References xDataTOMAL_getAttributesValue().

Referenced by xDataTOME_convertAttributeToInteger().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int xDataTOMAL_copyAttributionList ( statusMessageReporting *  smr,
xDataTOM_attributionList *  desc,
xDataTOM_attributionList *  src 
)

Definition at line 415 of file xDataTOM.cc.

References xDataTOMAL_addAttribute(), xDataTOMAL_initial(), and xDataTOMAL_release().

Referenced by MCGIDI_target_heated_read(), and xDataTOME_copyAttributionList().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

char const* xDataTOMAL_getAttributesValue ( xDataTOM_attributionList *  attributes,
char const *  name 
)

Definition at line 403 of file xDataTOM.cc.

Referenced by MCGIDI_misc_pointerToAttributeIfAllOk(), MCGIDI_misc_pointerToTOMAttributeIfAllOk(), MCGIDI_target_getAttributesValue(), xDataTOM_getAttributesValueInElement(), xDataTOMAL_convertAttributeToDouble(), and xDataTOMAL_convertAttributeToInteger().

+ Here is the caller graph for this function:

void xDataTOMAL_initial ( statusMessageReporting *  ,
xDataTOM_attributionList *  attributes 
)

Definition at line 353 of file xDataTOM.cc.

Referenced by MCGIDI_misc_copyXMLAttributesToTOM(), MCGIDI_reaction_initialize2(), xDataTOMAL_copyAttributionList(), xDataTOMAL_release(), and xDataTOME_initializeElement().

+ Here is the caller graph for this function:

void xDataTOMAL_release ( xDataTOM_attributionList *  attributes)

Definition at line 361 of file xDataTOM.cc.

References smr_freeMemory(), and xDataTOMAL_initial().

Referenced by MCGIDI_misc_copyXMLAttributesToTOM(), MCGIDI_reaction_release(), MCGIDI_target_heated_release(), MCGIDI_target_release(), xDataTOM_releaseElement(), and xDataTOMAL_copyAttributionList().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int xDataTOME_addAttribute ( statusMessageReporting *  smr,
xDataTOM_element *  element,
char const *  name,
char const *  value 
)

Definition at line 279 of file xDataTOM.cc.

References xDataTOMAL_addAttribute().

Referenced by xDataXML_constructTOM().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int xDataTOME_convertAttributeToDouble ( statusMessageReporting *  smr,
xDataTOM_element *  element,
char const *  name,
double *  d 
)

Definition at line 307 of file xDataTOM.cc.

References xDataTOMAL_convertAttributeToDouble().

Referenced by MCGIDI_target_heated_parseParticleGammas().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int xDataTOME_convertAttributeToInteger ( statusMessageReporting *  smr,
xDataTOM_element *  element,
char const *  name,
int *  n 
)

Definition at line 300 of file xDataTOM.cc.

References xDataTOMAL_convertAttributeToInteger().

Referenced by MCGIDI_energy_parseNBodyPhaseSpaceFromTOM(), MCGIDI_product_parseFromTOM(), and MCGIDI_reaction_parseFromTOM().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int xDataTOME_copyAttributionList ( statusMessageReporting *  smr,
xDataTOM_attributionList *  desc,
xDataTOM_element *  element 
)

Definition at line 293 of file xDataTOM.cc.

References xDataTOMAL_copyAttributionList().

Referenced by MCGIDI_reaction_parseFromTOM().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void xDataTOME_displayTree ( statusMessageReporting *  smr,
xDataTOM_element *  element,
int  printAttributes,
int  level 
)
static

Definition at line 326 of file xDataTOM.cc.

References xDataTOME_getFirstElement(), and xDataTOME_getNextElement().

Referenced by xDataTOM_displayTree().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

xDataTOM_element* xDataTOME_getFirstElement ( xDataTOM_element *  element)
int xDataTOME_getInterpolation ( statusMessageReporting *  smr,
xDataTOM_element *  element,
int  index,
enum xDataTOM_interpolationFlag *  independent,
enum xDataTOM_interpolationFlag *  dependent,
enum xDataTOM_interpolationQualifier *  qualifier 
)

Definition at line 314 of file xDataTOM.cc.

References xDataTOM_axes_getInterpolation().

Referenced by MCGIDI_fromTOM_interpolation(), and MCGIDI_reaction_parseFromTOM().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

xDataTOM_element* xDataTOME_getNextElement ( xDataTOM_element *  element)
xDataTOM_element* xDataTOME_getOneElementByName ( statusMessageReporting *  smr,
xDataTOM_element *  element,
char const *  name,
int  required 
)
xDataTOM_xDataInfo* xDataTOME_getXData ( xDataTOM_element *  TE)

Definition at line 504 of file xDataTOM.cc.

Referenced by xDataTOME_getXDataIfID().

+ Here is the caller graph for this function:

void* xDataTOME_getXDataIfID ( statusMessageReporting *  smr,
xDataTOM_element *  TE,
char const *  ID 
)

Definition at line 512 of file xDataTOM.cc.

References xDataTOME_getXData().

Referenced by MCGIDI_angular_parseFromTOM(), MCGIDI_angularEnergy_parsePointwiseFromTOM(), MCGIDI_energy_parseMadlandNixFromTOM(), MCGIDI_energyAngular_linear_parseFromTOM(), MCGIDI_fromTOM_pdfsOfXGivenW(), and MCGIDI_LLNL_angularEnergy_parsePointwiseFromTOM().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int xDataTOME_initializeElement ( statusMessageReporting *  smr,
xDataTOM_element *  element,
xDataTOM_element *  parent,
int  ordinal,
int  index,
char const *  name 
)
static

Definition at line 207 of file xDataTOM.cc.

References xDataTOM_initialize_xData(), and xDataTOMAL_initial().

Referenced by xDataTOM_initializeTOM(), and xDataTOM_mallocElement().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation