HDK
|
#include <Factory.h>
Public Types | |
using | Ptr = shared_ptr< T > |
using | CreatorFunction ) = Ptr(*)( |
using | CreatorMap = std::unordered_map< string, CreatorFunction > |
Public Member Functions | |
void | registerClass (const string &typeName, CreatorFunction f) |
bool | classRegistered (const string &typeName) const |
Determine if a class has been registered for a type name. More... | |
void | unregisterClass (const string &typeName) |
Unregister a registered class. More... | |
Ptr | create (const string &typeName) const |
Public Member Functions inherited from TIL_RasterFilter::Factory | |
Factory ()=default | |
virtual | ~Factory () |
virtual const UT_StringHolder & | name () const =0 |
virtual const UT_StringHolder & | label () const =0 |
virtual TIL_RasterFilterPtr | newFilter () const =0 |
Factory class for creating instances of classes given their type name.
using Factory< T >::CreatorMap = std::unordered_map<string, CreatorFunction> |
|
inline |