Geant4 Cross Reference |
1 /* 1 2 # <<BEGIN-copyright>> 3 # <<END-copyright>> 4 */ 5 #ifndef MCGIDI_map_h_included 6 #define MCGIDI_map_h_included 7 8 #include <statusMessageReporting.h> 9 10 #if defined __cplusplus 11 extern "C" { 12 namespace GIDI { 13 #endif 14 15 enum MCGIDI_map_status { MCGIDI_map_status_Ok, 16 MCGIDI_map_status_UnknownType }; 17 enum MCGIDI_mapEntry_type { MCGIDI_mapEntry_ty 18 19 typedef struct MCGIDI_map_s MCGIDI_map; 20 typedef struct MCGIDI_mapEntry_s MCGIDI_mapEnt 21 typedef struct MCGIDI_map_smr_s MCGIDI_map_smr 22 23 struct MCGIDI_map_smr_s { 24 smr_userInterface smrUserInterface; 25 MCGIDI_map *map; 26 }; 27 28 struct MCGIDI_mapEntry_s { 29 MCGIDI_mapEntry *next; 30 enum MCGIDI_mapEntry_type type; 31 MCGIDI_map *parent; 32 char *schema; 33 char *path; 34 char *evaluation; 35 char *projectile; 36 char *targetName; 37 int globalPoPsIndexProjectile, globalPoPsI 38 MCGIDI_map *map; 39 }; 40 41 struct MCGIDI_map_s { 42 enum MCGIDI_map_status status; 43 MCGIDI_map_smr smrUserInterface; 44 char *path; 45 char *mapFileName; 46 int numberOfEntries; 47 MCGIDI_mapEntry *mapEntries; 48 }; 49 50 MCGIDI_map *MCGIDI_map_new( statusMessageRepor 51 int MCGIDI_map_initialize( statusMessageReport 52 MCGIDI_map *MCGIDI_map_readFile( statusMessage 53 void *MCGIDI_map_free( statusMessageReporting 54 void MCGIDI_map_release( statusMessageReportin 55 MCGIDI_mapEntry *MCGIDI_map_getFirstEntry( MCG 56 MCGIDI_mapEntry *MCGIDI_map_getNextEntry( MCGI 57 int MCGIDI_map_addTarget( statusMessageReporti 58 int MCGIDI_map_addPath( statusMessageReporting 59 char *MCGIDI_map_findTargetViaPoPIDs( statusMe 60 char *MCGIDI_map_findTarget( statusMessageRepo 61 MCGIDI_map *MCGIDI_map_findAllOfTargetViaPoPID 62 MCGIDI_map *MCGIDI_map_findAllOfTarget( status 63 char *MCGIDI_map_getFullPath( statusMessageRep 64 char *MCGIDI_map_getTargetsFullPath( statusMes 65 int MCGIDI_map_walkTree( statusMessageReportin 66 char *MCGIDI_map_toXMLString( statusMessageRep 67 void MCGIDI_map_simpleWrite( FILE *f, MCGIDI_m 68 69 #if defined __cplusplus 70 } 71 } 72 #endif 73 74 #endif /* End of MCGIDI_map_h_include 75