Geant4  10.00.p02
tpia_map.cc File Reference
#include <string.h>
#include <limits.h>
#include <tpia_map.h>
+ Include dependency graph for tpia_map.cc:

Go to the source code of this file.

Functions

static tpia_mapEntry * _tpia_map_addEntry (statusMessageReporting *smr, tpia_map *map, enum tpia_mapEntry_type type, const char *schema, const char *path, const char *evaluation, const char *projectile, const char *target)
 
static char * _tpia_map_findTarget2 (statusMessageReporting *smr, tpia_map *map, const char *evaluation, const char *projectile, const char *target)
 
static int _tpia_map_findAllOfTarget2 (statusMessageReporting *smr, tpia_map *mapAllOfTarget, tpia_map *map, const char *projectile, const char *targetName)
 
static int _tpia_map_walkTree2 (statusMessageReporting *smr, tpia_map *map, int level, int(*handler)(tpia_mapEntry *entry, int level, void *userData), void *userData)
 
static void _tpia_map_simpleWrite2 (FILE *f, tpia_map *map, int level)
 
static int _tpia_map_smrUserInterface (void *userData, char **str)
 
tpia_map * tpia_map_create (statusMessageReporting *smr)
 
int tpia_map_initialize (statusMessageReporting *, tpia_map *map)
 
tpia_map * tpia_map_readFile (statusMessageReporting *smr, const char *basePath, const char *mapFileName)
 
void * tpia_map_free (statusMessageReporting *smr, tpia_map *map)
 
void tpia_map_release (statusMessageReporting *smr, tpia_map *map)
 
tpia_mapEntry * tpia_map_getFirstEntry (tpia_map *map)
 
tpia_mapEntry * tpia_map_getNextEntry (tpia_mapEntry *entry)
 
int tpia_map_addTarget (statusMessageReporting *smr, tpia_map *map, const char *schema, const char *path, const char *evaluation, const char *projectile, const char *target)
 
int tpia_map_addPath (statusMessageReporting *smr, tpia_map *map, const char *path, const char *projectile)
 
char * tpia_map_findTarget (statusMessageReporting *smr, tpia_map *map, const char *evaluation, const char *projectile, const char *targetName)
 
tpia_map * tpia_map_findAllOfTarget (statusMessageReporting *smr, tpia_map *map, const char *projectile, const char *targetName)
 
char * tpia_map_getFullPath (statusMessageReporting *smr, tpia_map *map, const char *endPath)
 
int tpia_map_walkTree (statusMessageReporting *smr, tpia_map *map, int(*handler)(tpia_mapEntry *entry, int level, void *userData), void *userData)
 
char * tpia_map_toXMLString (statusMessageReporting *smr, tpia_map *map)
 
void tpia_map_simpleWrite (FILE *f, tpia_map *map)
 

Function Documentation

static tpia_mapEntry * _tpia_map_addEntry ( statusMessageReporting *  smr,
tpia_map *  map,
enum tpia_mapEntry_type  type,
const char *  schema,
const char *  path,
const char *  evaluation,
const char *  projectile,
const char *  target 
)
static

Definition at line 248 of file tpia_map.cc.

References xData_free().

Referenced by _tpia_map_findAllOfTarget2(), tpia_map_addPath(), and tpia_map_addTarget().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int _tpia_map_findAllOfTarget2 ( statusMessageReporting *  smr,
tpia_map *  mapAllOfTarget,
tpia_map *  map,
const char *  projectile,
const char *  targetName 
)
static

Definition at line 410 of file tpia_map.cc.

References _tpia_map_addEntry(), and smr_setMessageInfo().

Referenced by tpia_map_findAllOfTarget().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static char * _tpia_map_findTarget2 ( statusMessageReporting *  smr,
tpia_map *  map,
const char *  evaluation,
const char *  projectile,
const char *  target 
)
static

Definition at line 348 of file tpia_map.cc.

References n, and smr_setMessageInfo().

Referenced by tpia_map_findTarget().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void _tpia_map_simpleWrite2 ( FILE *  f,
tpia_map *  map,
int  level 
)
static

Definition at line 531 of file tpia_map.cc.

References n.

Referenced by tpia_map_simpleWrite().

+ Here is the caller graph for this function:

static int _tpia_map_smrUserInterface ( void *  userData,
char **  str 
)
static

Definition at line 562 of file tpia_map.cc.

Referenced by tpia_map_initialize().

+ Here is the caller graph for this function:

static int _tpia_map_walkTree2 ( statusMessageReporting *  smr,
tpia_map *  map,
int  level,
int(*)(tpia_mapEntry *entry, int level, void *userData handler,
void *  userData 
)
static

Definition at line 464 of file tpia_map.cc.

Referenced by tpia_map_walkTree().

+ Here is the caller graph for this function:

int tpia_map_addPath ( statusMessageReporting *  smr,
tpia_map *  map,
const char *  path,
const char *  projectile 
)

Definition at line 236 of file tpia_map.cc.

References _tpia_map_addEntry(), and tpia_map_readFile().

Referenced by tpia_map_readFile().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int tpia_map_addTarget ( statusMessageReporting *  smr,
tpia_map *  map,
const char *  schema,
const char *  path,
const char *  evaluation,
const char *  projectile,
const char *  target 
)

Definition at line 229 of file tpia_map.cc.

References _tpia_map_addEntry().

Referenced by tpia_map_readFile().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

tpia_map* tpia_map_create ( statusMessageReporting *  smr)

Definition at line 59 of file tpia_map.cc.

References tpia_map_free(), and tpia_map_initialize().

Referenced by tpia_map_findAllOfTarget(), and tpia_map_readFile().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

tpia_map* tpia_map_findAllOfTarget ( statusMessageReporting *  smr,
tpia_map *  map,
const char *  projectile,
const char *  targetName 
)

Definition at line 393 of file tpia_map.cc.

References _tpia_map_findAllOfTarget2(), tpia_map_create(), and tpia_map_free().

Referenced by G4GIDI::getNamesOfAvailableLibraries().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

char* tpia_map_findTarget ( statusMessageReporting *  smr,
tpia_map *  map,
const char *  evaluation,
const char *  projectile,
const char *  targetName 
)

Definition at line 327 of file tpia_map.cc.

References _tpia_map_findTarget2(), smr_isOk(), and smr_setMessageInfo().

Referenced by G4GIDI::dataFilename(), tpia_target_createReadFromMap(), and tpia_target_readFromMap().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void* tpia_map_free ( statusMessageReporting *  smr,
tpia_map *  map 
)

Definition at line 184 of file tpia_map.cc.

References tpia_map_release(), and xData_free().

Referenced by G4GIDI::getNamesOfAvailableLibraries(), tpia_depot_freeMap(), tpia_depot_release(), tpia_map_create(), tpia_map_findAllOfTarget(), tpia_map_readFile(), tpia_map_release(), and G4GIDI_map::~G4GIDI_map().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

tpia_mapEntry* tpia_map_getFirstEntry ( tpia_map *  map)

Definition at line 215 of file tpia_map.cc.

Referenced by G4GIDI::getNamesOfAvailableLibraries().

+ Here is the caller graph for this function:

char* tpia_map_getFullPath ( statusMessageReporting *  smr,
tpia_map *  map,
const char *  endPath 
)

Definition at line 437 of file tpia_map.cc.

tpia_mapEntry* tpia_map_getNextEntry ( tpia_mapEntry *  entry)

Definition at line 222 of file tpia_map.cc.

Referenced by G4GIDI::getNamesOfAvailableLibraries().

+ Here is the caller graph for this function:

int tpia_map_initialize ( statusMessageReporting *  ,
tpia_map *  map 
)

Definition at line 73 of file tpia_map.cc.

References _tpia_map_smrUserInterface().

Referenced by tpia_map_create().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

tpia_map* tpia_map_readFile ( statusMessageReporting *  smr,
const char *  basePath,
const char *  mapFileName 
)

Definition at line 88 of file tpia_map.cc.

References n, smr_isOk(), smr_setMessageError(), tpia_map_addPath(), tpia_map_addTarget(), tpia_map_create(), tpia_map_free(), xData_getAttributesValueInElement(), xData_getDocumentsElement(), xData_getFirstElement(), xData_getNextElement(), xData_parseFree(), and xData_parseReadFile().

Referenced by G4GIDI_map::G4GIDI_map(), tpia_depot_setMapFromFilename(), and tpia_map_addPath().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void tpia_map_release ( statusMessageReporting *  smr,
tpia_map *  map 
)

Definition at line 193 of file tpia_map.cc.

References tpia_map_free(), and xData_free().

Referenced by tpia_map_free().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void tpia_map_simpleWrite ( FILE *  f,
tpia_map *  map 
)

Definition at line 527 of file tpia_map.cc.

References _tpia_map_simpleWrite2().

+ Here is the call graph for this function:

char* tpia_map_toXMLString ( statusMessageReporting *  smr,
tpia_map *  map 
)

Definition at line 478 of file tpia_map.cc.

References n, s, and smr_setMessageInfo().

+ Here is the call graph for this function:

int tpia_map_walkTree ( statusMessageReporting *  smr,
tpia_map *  map,
int(*)(tpia_mapEntry *entry, int level, void *userData handler,
void *  userData 
)

Definition at line 457 of file tpia_map.cc.

References _tpia_map_walkTree2().

Referenced by G4GIDI::getNamesOfAvailableTargets().

+ Here is the call graph for this function:

+ Here is the caller graph for this function: