MarlinMT  0.1.0
EmptyGeometry.cc
Go to the documentation of this file.
1 
2 // -- marlinmt headers
5 
6 namespace marlinmt {
7 
12  class EmptyGeometry : public GeometryPlugin {
13  public:
14  EmptyGeometry(const EmptyGeometry &) = delete ;
15  EmptyGeometry& operator=(const EmptyGeometry &) = delete ;
16 
17  public:
18  EmptyGeometry() : GeometryPlugin( "Empty" ) { /* nop */ }
19 
20  protected:
21  void loadGeometry() override { /* nop */ }
22  const void *handle() const override { return nullptr ; }
23  void destroy() override { /* nop */ }
24  std::type_index typeIndex() const override { return std::type_index( typeid(nullptr) ) ; }
25  void dumpGeometry() const override { /* nop */ }
26  };
27 
29 
30 }
EmptyGeometry class Implement an empty geometry.
#define MARLINMT_DECLARE_GEOMETRY(Class)
Definition: PluginManager.h:40
void destroy() override
Cleanup geometry.
const void * handle() const override
Get a handle on the geometry instance.
void loadGeometry() override
Load the geometry.
std::type_index typeIndex() const override
Get a type index object from the geometry handle.
GeometryPlugin class Responsible for loading geometry in Marlin and providing access to it through th...
EmptyGeometry & operator=(const EmptyGeometry &)=delete
void dumpGeometry() const override
Dump the geometry in the console.