Files
geant4/source/geometry/solids/STEPinterface/include/G4GeometryTable.hh
T
2016-06-08 15:55:53 +02:00

65 lines
1.5 KiB
C++

// This code implementation is the intellectual property of
// the GEANT4 collaboration.
//
// By copying, distributing or modifying the Program (or any work
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4GeometryTable.hh,v 1.4 2000/11/09 16:35:46 gcosmo Exp $
// GEANT4 tag $Name: geant4-03-00 $
//
// ----------------------------------------------------------------------
// Class G4GeometryTable
//
// Class description:
//
//
// Authors: J.Sulkimo, P.Urban.
// Revisions by: L.Broglia, G.Cosmo.
//
// History:
// 18-Nov-1999: First step of re-engineering - G.Cosmo
// ----------------------------------------------------------------------
#ifndef G4GEOMETRYTABLE_HH
#define G4GEOMETRYTABLE_HH
#include "globals.hh"
#include "G4GeometryCreator.hh"
typedef G4RWTPtrOrderedVector<G4GeometryCreator> G4CreatorVector;
class G4GeometryTable
{
public:
// Destructor
~G4GeometryTable();
// Member functions
static void RegisterObject(G4GeometryCreator*);
static G4bool ExistsInTable(G4String&);
static G4GeometryCreator* GetObject(G4String);
static void* CreateObject(STEPentity&);
static void* CreateSTEPObject(void*, G4String&);
static void PrintObjectNames();
static const G4GeometryTable& GetInstance() { return gt; }
public:
// Constructor, singleton
G4GeometryTable();
// Members
private:
static G4CreatorVector RegisteredObjects;
static G4GeometryTable gt;
};
#endif