Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
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
19typedef struct MCGIDI_map_s MCGIDI_map;
22
26};
27
32 char *schema;
33 char *path;
37 int globalPoPsIndexProjectile, globalPoPsIndexTarget;
39};
40
44 char *path;
48};
49
52MCGIDI_map *MCGIDI_map_readFile( statusMessageReporting *smr, const char *basePath, const char *mapFileName );
57int MCGIDI_map_addTarget( statusMessageReporting *smr, MCGIDI_map *map, const char *method, const char *path, const char *evaluation, const char *projectile, const char *targetName );
58int MCGIDI_map_addPath( statusMessageReporting *smr, MCGIDI_map *map, const char *path );
59char *MCGIDI_map_findTargetViaPoPIDs( statusMessageReporting *smr, MCGIDI_map *map, const char *evaluation, int projectile_PoPID, int target_PoPID );
60char *MCGIDI_map_findTarget( statusMessageReporting *smr, MCGIDI_map *map, const char *evaluation, const char *projectile, const char *targetName );
61MCGIDI_map *MCGIDI_map_findAllOfTargetViaPoPIDs( statusMessageReporting *smr, MCGIDI_map *map, int projectile_PoPID, int target_PoPID );
62MCGIDI_map *MCGIDI_map_findAllOfTarget( statusMessageReporting *smr, MCGIDI_map *map, const char *projectile, const char *targetName );
63char *MCGIDI_map_getFullPath( statusMessageReporting *smr, MCGIDI_map *map, const char *endPath );
65int MCGIDI_map_walkTree( statusMessageReporting *smr, MCGIDI_map *map, int (*handler)( MCGIDI_mapEntry *entry, int level, void *userData), void *userData );
67void 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. */
int MCGIDI_map_addPath(statusMessageReporting *smr, MCGIDI_map *map, const char *path)
Definition: MCGIDI_map.cc:225
char * MCGIDI_map_getFullPath(statusMessageReporting *smr, MCGIDI_map *map, const char *endPath)
Definition: MCGIDI_map.cc:441
MCGIDI_map * MCGIDI_map_readFile(statusMessageReporting *smr, const char *basePath, const char *mapFileName)
Definition: MCGIDI_map.cc:93
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_free(statusMessageReporting *smr, MCGIDI_map *map)
Definition: MCGIDI_map.cc:173
char * MCGIDI_map_findTarget(statusMessageReporting *smr, MCGIDI_map *map, const char *evaluation, const char *projectile, const char *targetName)
Definition: MCGIDI_map.cc:376
MCGIDI_mapEntry * MCGIDI_map_getFirstEntry(MCGIDI_map *map)
Definition: MCGIDI_map.cc:204
MCGIDI_map_status
Definition: MCGIDI_map.h:15
@ MCGIDI_map_status_Ok
Definition: MCGIDI_map.h:15
@ MCGIDI_map_status_UnknownType
Definition: MCGIDI_map.h:16
@ MCGIDI_map_status_memory
Definition: MCGIDI_map.h:15
@ MCGIDI_map_status_mapParsing
Definition: MCGIDI_map.h:15
MCGIDI_mapEntry * MCGIDI_map_getNextEntry(MCGIDI_mapEntry *entry)
Definition: MCGIDI_map.cc:211
MCGIDI_map * MCGIDI_map_findAllOfTargetViaPoPIDs(statusMessageReporting *smr, MCGIDI_map *map, int projectile_PoPID, int target_PoPID)
Definition: MCGIDI_map.cc:387
MCGIDI_mapEntry_type
Definition: MCGIDI_map.h:17
@ MCGIDI_mapEntry_type_target
Definition: MCGIDI_map.h:17
@ MCGIDI_mapEntry_type_path
Definition: MCGIDI_map.h:17
void MCGIDI_map_simpleWrite(FILE *f, MCGIDI_map *map)
Definition: MCGIDI_map.cc:550
char * MCGIDI_map_findTargetViaPoPIDs(statusMessageReporting *smr, MCGIDI_map *map, const char *evaluation, int projectile_PoPID, int target_PoPID)
Definition: MCGIDI_map.cc:302
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
void MCGIDI_map_release(statusMessageReporting *smr, MCGIDI_map *map)
Definition: MCGIDI_map.cc:182
MCGIDI_map * MCGIDI_map_new(statusMessageReporting *smr)
Definition: MCGIDI_map.cc:49
char * MCGIDI_map_toXMLString(statusMessageReporting *smr, MCGIDI_map *map)
Definition: MCGIDI_map.cc:501
MCGIDI_map * MCGIDI_map_findAllOfTarget(statusMessageReporting *smr, MCGIDI_map *map, const char *projectile, const char *targetName)
Definition: MCGIDI_map.cc:430
int MCGIDI_map_initialize(statusMessageReporting *smr, MCGIDI_map *map)
Definition: MCGIDI_map.cc:60
char * MCGIDI_map_getTargetsFullPath(statusMessageReporting *smr, MCGIDI_mapEntry *target)
Definition: MCGIDI_map.cc:459
char *(* smr_userInterface)(void *userData)
int globalPoPsIndexProjectile
Definition: MCGIDI_map.h:37
MCGIDI_mapEntry * next
Definition: MCGIDI_map.h:29
MCGIDI_map * map
Definition: MCGIDI_map.h:38
MCGIDI_map * parent
Definition: MCGIDI_map.h:31
enum MCGIDI_mapEntry_type type
Definition: MCGIDI_map.h:30
int numberOfEntries
Definition: MCGIDI_map.h:46
enum MCGIDI_map_status status
Definition: MCGIDI_map.h:42
MCGIDI_map_smr smrUserInterface
Definition: MCGIDI_map.h:43
char * path
Definition: MCGIDI_map.h:44
char * mapFileName
Definition: MCGIDI_map.h:45
MCGIDI_mapEntry * mapEntries
Definition: MCGIDI_map.h:47
smr_userInterface smrUserInterface
Definition: MCGIDI_map.h:24
MCGIDI_map * map
Definition: MCGIDI_map.h:25