OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
ot::Painter2DFactory Class Reference

#include "Painter2DFactory.h"

Inheritance diagram for ot::Painter2DFactory:
ot::FactoryTemplate< Painter2D >

Static Public Member Functions

static Painter2DFactoryinstance (void)
 
static Painter2Dcreate (const ConstJsonObject &_jsonObject)
 

Private Member Functions

virtual ~Painter2DFactory ()
 

Additional Inherited Members

- Public Types inherited from ot::FactoryTemplate< Painter2D >
typedef std::function< Painter2D *()> ConstructorFunctionType
 Constructor type definition.
 
- Public Member Functions inherited from ot::FactoryTemplate< Painter2D >
void registerConstructor (const std::string &_key, ConstructorFunctionType _constructor)
 Will register the prvided constructor under the given key. If a constructor for the given key already exists a warning log will be generated and the request will be ignored.
 
void deregisterConstructor (const std::string &_key)
 Remove the constructor for the given key.
 
Painter2DcreateFromKey (const std::string &_key)
 Call the constructor for the given key and return the created instance.
 
Painter2DcreateFromJSON (const ConstJsonObject &_jsonObject, const char *_typeKey)
 Creates an instance according to the key in the provided JSON object. If the key is empty the request will be ignored. If the created instance inherits from Serializable the setFromJsonObject method will be called.
 
Painter2DcreateFromJSON (const ConstJsonObject &_jsonObject, const std::string &_typeKey)
 [/ref ValueType* createFromJSON(const ConstJsonObject& _jsonObject, const char* _typeKey) "x"].
 
- Protected Member Functions inherited from ot::FactoryTemplate< Painter2D >
 FactoryTemplate ()
 Protected constructor.
 
 ~FactoryTemplate ()
 Protected destructor.
 

Member Function Documentation

◆ create()

ot::Painter2D * ot::Painter2DFactory::create ( const ConstJsonObject & _jsonObject)
static

◆ instance()

ot::Painter2DFactory & ot::Painter2DFactory::instance ( void )
static

◆ ~Painter2DFactory()

virtual ot::Painter2DFactory::~Painter2DFactory ( )
inlineprivatevirtual

The documentation for this class was generated from the following files: