#include "GraphicsItemCfgFactory.h"
Static Public Member Functions | |
static GraphicsItemCfgFactory & | instance (void) |
static GraphicsItemCfg * | create (const ConstJsonObject &_object) |
Private Member Functions | |
virtual | ~GraphicsItemCfgFactory () |
Additional Inherited Members | |
Public Types inherited from ot::FactoryTemplate< GraphicsItemCfg > | |
typedef std::function< GraphicsItemCfg *()> | ConstructorFunctionType |
Constructor type definition. | |
Public Member Functions inherited from ot::FactoryTemplate< GraphicsItemCfg > | |
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. | |
GraphicsItemCfg * | createFromKey (const std::string &_key) |
Call the constructor for the given key and return the created instance. | |
GraphicsItemCfg * | createFromJSON (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. | |
GraphicsItemCfg * | createFromJSON (const ConstJsonObject &_jsonObject, const std::string &_typeKey) |
[/ref ValueType* createFromJSON(const ConstJsonObject& _jsonObject, const char* _typeKey) "x"]. | |
Protected Member Functions inherited from ot::FactoryTemplate< GraphicsItemCfg > | |
FactoryTemplate () | |
Protected constructor. | |
~FactoryTemplate () | |
Protected destructor. | |
|
static |
|
static |
|
inlineprivatevirtual |