]>
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> | |
63c8351a | 14 | #include <g4std/vector> |
205e684d | 15 | #include <g4std/set> |
2817d3e2 | 16 | #include <g4rw/tvordvec.h> |
17 | #include <g4rw/tpordvec.h> | |
90f51010 | 18 | #include <G4RotationMatrix.hh> |
2817d3e2 | 19 | |
2817d3e2 | 20 | class G4Material; |
21 | class G4Element; | |
22 | ||
3c7cd15a | 23 | typedef G4std::vector<G4bool> TG4boolVector; |
24 | typedef G4std::vector<G4int> TG4intVector; | |
90f51010 | 25 | typedef G4std::vector<const G4RotationMatrix*> TG4RotationMatrixVector; |
205e684d | 26 | typedef G4std::set <G4String, G4std::less<G4String> > TG4StringSet; |
2817d3e2 | 27 | typedef G4RWTValOrderedVector<G4double> TG4doubleVector; |
28 | typedef G4RWTValOrderedVector<G4String> TG4StringVector; | |
29 | typedef G4RWTValOrderedVector<TG3FlagValue> TG3FlagVector; | |
30 | typedef G4RWTPtrOrderedVector<G4Material> TG4MaterialVector; | |
31 | typedef G4RWTPtrOrderedVector<G4Element> TG4ElementVector; | |
32 | ||
33 | class TG4Globals | |
34 | { | |
35 | public: | |
36 | // --> protected | |
37 | // TG4Globals(); | |
38 | virtual ~TG4Globals(); | |
39 | ||
40 | // static methods | |
41 | static void Exception(const char* string=0); | |
42 | // Global error function prints string to cerr, and aborts | |
43 | // program - according to G4Exception.cc | |
44 | static void Warning(const char* string=0); | |
45 | // Global warning function prints string to cerr | |
90f51010 | 46 | static void AppendNumberToString(G4String& string, G4int number); |
2817d3e2 | 47 | |
48 | protected: | |
49 | TG4Globals(); | |
50 | // only typedefs's and static methods | |
51 | }; | |
52 | ||
53 | #endif //ALGLOBALS_H |