GGS(GenericGEANT4Simulation)Software  2.7.0
 All Data Structures Namespaces Files Functions Variables Typedefs Macros
GGSGeoPluginManager.h
Go to the documentation of this file.
1 /*
2  * GGSGeoPluginManager.h
3  *
4  * Created on: 10 Jan 2012
5  * Author: Nicola Mori
6  */
7 
10 #ifndef GGSGEOPLUGINMANAGER_H_
11 #define GGSGEOPLUGINMANAGER_H_
12 
13 // C++ headers
14 #include <string>
15 
16 // GGS headers
18 
29 
30 public:
36 
39 
49  bool LoadGeoPlugin(const std::string &libName);
50 
61  if (_geoConstruction)
62  return _geoConstruction;
63  else
64  return NULL;
65  }
66 
67 private:
68  GGSGeoPluginManager() : _ggsLibrary(NULL), _geoConstruction(NULL) {}
69 
70  void *_ggsLibrary;
71  GGSVGeometryConstruction *_geoConstruction;
72 };
73 
74 #endif /* GGSGEOPLUGINMANAGER_H_ */
Abstract class needed to load GGS geometry.
~GGSGeoPluginManager()
Destructor.
static GGSGeoPluginManager & GetInstance()
Get the singleton instance.
Manager for geometry plugin.
bool LoadGeoPlugin(const std::string &libName)
Loads the geometry plugin library.
GGSVGeometryConstruction * GetGeoConstruction()
Returns the geometry construction object.