QwAnalysis
|
Concrete templated type factory. More...
#include <QwFactory.h>
Public Member Functions | |
QwFactory (const std::string &type) | |
Constructor which stores type name in list of registered types. More... | |
base_t * | Create (const std::string &name) const |
Concrete type creation. More... | |
type_t * | Cast (base_t *base) const |
Dynamic cast of type. More... | |
![]() | |
virtual | ~VQwFactory () |
Default virtual destructor. More... | |
Additional Inherited Members | |
![]() | |
static base_t * | Create (const std::string &type, const std::string &name) |
Create an object of type with name. More... | |
static base_t * | Cast (base_t *base, const std::string &type) |
Dynamic cast of object into type. More... | |
static bool | InheritsFrom (base_t *base, const std::string &type) |
Test whether object inherits from type. More... | |
![]() | |
static std::map< std::string, VQwFactory * > & | GetRegisteredTypes () |
Map from string to concrete type factories. More... | |
static void | ListRegisteredTypes () |
List available type factories. More... | |
static VQwFactory * | GetFactory (const std::string &type) |
Get a concrete type factory by string. More... | |
Concrete templated type factory.
This class represents concrete instances of the virtual VQwFactory from which it inherits. Each concrete factory can create types with a given name.
Definition at line 105 of file QwFactory.h.
|
inline |
Constructor which stores type name in list of registered types.
Definition at line 110 of file QwFactory.h.
|
inlinevirtual |
|
inlinevirtual |
Concrete type creation.
Implements VQwFactory< base_t >.
Definition at line 115 of file QwFactory.h.