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> |
2817d3e2 |
15 | #include <g4rw/tvordvec.h> |
16 | #include <g4rw/tpordvec.h> |
17 | |
2817d3e2 |
18 | class G4Material; |
19 | class G4Element; |
20 | |
21 | //typedef G4RWTValOrderedVector<G4bool> TG4boolVector; |
22 | typedef vector<G4bool> TG4boolVector; |
23 | typedef G4RWTValOrderedVector<G4double> TG4doubleVector; |
24 | typedef G4RWTValOrderedVector<G4String> TG4StringVector; |
25 | typedef G4RWTValOrderedVector<TG3FlagValue> TG3FlagVector; |
26 | typedef G4RWTPtrOrderedVector<G4Material> TG4MaterialVector; |
27 | typedef G4RWTPtrOrderedVector<G4Element> TG4ElementVector; |
28 | |
29 | class TG4Globals |
30 | { |
31 | public: |
32 | // --> protected |
33 | // TG4Globals(); |
34 | virtual ~TG4Globals(); |
35 | |
36 | // static methods |
37 | static void Exception(const char* string=0); |
38 | // Global error function prints string to cerr, and aborts |
39 | // program - according to G4Exception.cc |
40 | static void Warning(const char* string=0); |
41 | // Global warning function prints string to cerr |
42 | |
43 | protected: |
44 | TG4Globals(); |
45 | // only typedefs's and static methods |
46 | }; |
47 | |
48 | #endif //ALGLOBALS_H |