// $Id$ // Category: global // // Class for generally used basic types and functions. // It is protected from instantiating (only static data members // and static methods are defined). #ifndef TG4_GLOBALS_H #define TG4_GLOBALS_H #include #include #include #include #include #include class G4Material; class G4Element; typedef G4std::vector TG4boolVector; typedef G4std::vector TG4intVector; typedef G4std::vector TG4RotationMatrixVector; typedef G4std::set > TG4StringSet; typedef G4RWTValOrderedVector TG4doubleVector; typedef G4RWTValOrderedVector TG4StringVector; typedef G4RWTPtrOrderedVector TG4MaterialVector; typedef G4RWTPtrOrderedVector TG4ElementVector; class TG4Globals { public: // --> protected // TG4Globals(); virtual ~TG4Globals(); // static methods static void Exception(const char* string=0); // Global error function prints string to cerr, and aborts // program - according to G4Exception.cc static void Warning(const char* string=0); // Global warning function prints string to cerr static void AppendNumberToString(G4String& string, G4int number); protected: TG4Globals(); // only typedefs's and static methods }; #endif //ALGLOBALS_H