Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MCGIDI_map.h
Go to the documentation of this file.
1 /*
2 # <<BEGIN-copyright>>
3 # <<END-copyright>>
4 */
5 #ifndef MCGIDI_map_h_included
6 #define MCGIDI_map_h_included
7 
9 
10 #if defined __cplusplus
11  extern "C" {
12  namespace GIDI {
13 #endif
14 
18 
19 typedef struct MCGIDI_map_s MCGIDI_map;
22 
26 };
27 
32  char *schema;
33  char *path;
34  char *evaluation;
35  char *projectile;
36  char *targetName;
37  int globalPoPsIndexProjectile, globalPoPsIndexTarget;
39 };
40 
41 struct MCGIDI_map_s {
42  enum MCGIDI_map_status status;
44  char *path;
45  char *mapFileName;
48 };
49 
52 MCGIDI_map *MCGIDI_map_readFile( statusMessageReporting *smr, const char *basePath, const char *mapFileName );
57 int MCGIDI_map_addTarget( statusMessageReporting *smr, MCGIDI_map *map, const char *method, const char *path, const char *evaluation, const char *projectile, const char *targetName );
58 int MCGIDI_map_addPath( statusMessageReporting *smr, MCGIDI_map *map, const char *path );
59 char *MCGIDI_map_findTargetViaPoPIDs( statusMessageReporting *smr, MCGIDI_map *map, const char *evaluation, int projectile_PoPID, int target_PoPID );
60 char *MCGIDI_map_findTarget( statusMessageReporting *smr, MCGIDI_map *map, const char *evaluation, const char *projectile, const char *targetName );
61 MCGIDI_map *MCGIDI_map_findAllOfTargetViaPoPIDs( statusMessageReporting *smr, MCGIDI_map *map, int projectile_PoPID, int target_PoPID );
62 MCGIDI_map *MCGIDI_map_findAllOfTarget( statusMessageReporting *smr, MCGIDI_map *map, const char *projectile, const char *targetName );
63 char *MCGIDI_map_getFullPath( statusMessageReporting *smr, MCGIDI_map *map, const char *endPath );
65 int MCGIDI_map_walkTree( statusMessageReporting *smr, MCGIDI_map *map, int (*handler)( MCGIDI_mapEntry *entry, int level, void *userData), void *userData );
67 void MCGIDI_map_simpleWrite( FILE *f, MCGIDI_map *map );
68 
69 #if defined __cplusplus
70  }
71  }
72 #endif
73 
74 #endif /* End of MCGIDI_map_h_included. */
MCGIDI_map * parent
Definition: MCGIDI_map.h:31
MCGIDI_map * MCGIDI_map_new(statusMessageReporting *smr)
Definition: MCGIDI_map.cc:49
MCGIDI_mapEntry * MCGIDI_map_getFirstEntry(MCGIDI_map *map)
Definition: MCGIDI_map.cc:204
char * path
Definition: MCGIDI_map.h:33
const XML_Char * target
Definition: expat.h:268
char * evaluation
Definition: MCGIDI_map.h:34
int MCGIDI_map_walkTree(statusMessageReporting *smr, MCGIDI_map *map, int(*handler)(MCGIDI_mapEntry *entry, int level, void *userData), void *userData)
Definition: MCGIDI_map.cc:494
void MCGIDI_map_simpleWrite(FILE *f, MCGIDI_map *map)
Definition: MCGIDI_map.cc:550
Definition: MCGIDI_map.h:28
MCGIDI_map * MCGIDI_map_readFile(statusMessageReporting *smr, const char *basePath, const char *mapFileName)
Definition: MCGIDI_map.cc:93
smr_userInterface smrUserInterface
Definition: MCGIDI_map.h:24
char *(* smr_userInterface)(void *userData)
MCGIDI_map * MCGIDI_map_findAllOfTarget(statusMessageReporting *smr, MCGIDI_map *map, const char *projectile, const char *targetName)
Definition: MCGIDI_map.cc:430
#define userData
Definition: xmlparse.cc:572
int MCGIDI_map_addPath(statusMessageReporting *smr, MCGIDI_map *map, const char *path)
Definition: MCGIDI_map.cc:225
void * MCGIDI_map_free(statusMessageReporting *smr, MCGIDI_map *map)
Definition: MCGIDI_map.cc:173
MCGIDI_mapEntry * MCGIDI_map_getNextEntry(MCGIDI_mapEntry *entry)
Definition: MCGIDI_map.cc:211
char * path
Definition: MCGIDI_map.h:44
char * targetName
Definition: MCGIDI_map.h:36
MCGIDI_mapEntry * mapEntries
Definition: MCGIDI_map.h:47
char * MCGIDI_map_toXMLString(statusMessageReporting *smr, MCGIDI_map *map)
Definition: MCGIDI_map.cc:501
char * mapFileName
Definition: MCGIDI_map.h:45
MCGIDI_map * MCGIDI_map_findAllOfTargetViaPoPIDs(statusMessageReporting *smr, MCGIDI_map *map, int projectile_PoPID, int target_PoPID)
Definition: MCGIDI_map.cc:387
char * MCGIDI_map_getFullPath(statusMessageReporting *smr, MCGIDI_map *map, const char *endPath)
Definition: MCGIDI_map.cc:441
int numberOfEntries
Definition: MCGIDI_map.h:46
int globalPoPsIndexTarget
Definition: MCGIDI_map.h:37
int MCGIDI_map_addTarget(statusMessageReporting *smr, MCGIDI_map *map, const char *method, const char *path, const char *evaluation, const char *projectile, const char *targetName)
Definition: MCGIDI_map.cc:218
MCGIDI_map_smr smrUserInterface
Definition: MCGIDI_map.h:43
MCGIDI_mapEntry_type
Definition: MCGIDI_map.h:17
void MCGIDI_map_release(statusMessageReporting *smr, MCGIDI_map *map)
Definition: MCGIDI_map.cc:182
char * schema
Definition: MCGIDI_map.h:32
int MCGIDI_map_initialize(statusMessageReporting *smr, MCGIDI_map *map)
Definition: MCGIDI_map.cc:60
MCGIDI_map_status
Definition: MCGIDI_map.h:15
char * MCGIDI_map_getTargetsFullPath(statusMessageReporting *smr, MCGIDI_mapEntry *target)
Definition: MCGIDI_map.cc:459
char * MCGIDI_map_findTargetViaPoPIDs(statusMessageReporting *smr, MCGIDI_map *map, const char *evaluation, int projectile_PoPID, int target_PoPID)
Definition: MCGIDI_map.cc:302
char * MCGIDI_map_findTarget(statusMessageReporting *smr, MCGIDI_map *map, const char *evaluation, const char *projectile, const char *targetName)
Definition: MCGIDI_map.cc:376
char * projectile
Definition: MCGIDI_map.h:35
MCGIDI_mapEntry * next
Definition: MCGIDI_map.h:29
MCGIDI_map * map
Definition: MCGIDI_map.h:25
MCGIDI_map * map
Definition: MCGIDI_map.h:38