]>
Commit | Line | Data |
---|---|---|
2817d3e2 | 1 | // $Id$ |
2 | // Category: global | |
3 | // | |
4 | // Class for generally used basic types and functions. | |
5 | // It is protected from instantiating (only static data members | |
6 | // and static methods are defined). | |
7 | ||
8 | #ifndef TG4_GLOBALS_H | |
9 | #define TG4_GLOBALS_H | |
10 | ||
11 | #include "TG3Flag.h" | |
12 | ||
13 | #include <globals.hh> | |
14 | ||
15 | #include <g4rw/tvordvec.h> | |
16 | #include <g4rw/tpordvec.h> | |
17 | ||
18 | #include <vector.h> | |
19 | ||
20 | class G4Material; | |
21 | class G4Element; | |
22 | ||
23 | //typedef G4RWTValOrderedVector<G4bool> TG4boolVector; | |
24 | typedef vector<G4bool> TG4boolVector; | |
25 | typedef G4RWTValOrderedVector<G4double> TG4doubleVector; | |
26 | typedef G4RWTValOrderedVector<G4String> TG4StringVector; | |
27 | typedef G4RWTValOrderedVector<TG3FlagValue> TG3FlagVector; | |
28 | typedef G4RWTPtrOrderedVector<G4Material> TG4MaterialVector; | |
29 | typedef G4RWTPtrOrderedVector<G4Element> TG4ElementVector; | |
30 | ||
31 | class TG4Globals | |
32 | { | |
33 | public: | |
34 | // --> protected | |
35 | // TG4Globals(); | |
36 | virtual ~TG4Globals(); | |
37 | ||
38 | // static methods | |
39 | static void Exception(const char* string=0); | |
40 | // Global error function prints string to cerr, and aborts | |
41 | // program - according to G4Exception.cc | |
42 | static void Warning(const char* string=0); | |
43 | // Global warning function prints string to cerr | |
44 | ||
45 | protected: | |
46 | TG4Globals(); | |
47 | // only typedefs's and static methods | |
48 | }; | |
49 | ||
50 | #endif //ALGLOBALS_H |