OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
WrappedItemFactory Class Reference

#include "WrappedItemFactory.h"

Inheritance diagram for WrappedItemFactory:
ot::FactoryTemplate< GraphicsItemDesignerItemBase >

Static Public Member Functions

static WrappedItemFactoryinstance (void)
 
static GraphicsItemDesignerItemBasecreateFromConfig (const ot::GraphicsItemCfg *_config)
 

Additional Inherited Members

- Public Types inherited from ot::FactoryTemplate< GraphicsItemDesignerItemBase >
typedef std::function< GraphicsItemDesignerItemBase *()> ConstructorFunctionType
 Constructor type definition.
 
- Public Member Functions inherited from ot::FactoryTemplate< GraphicsItemDesignerItemBase >
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.
 
GraphicsItemDesignerItemBasecreateFromKey (const std::string &_key)
 Call the constructor for the given key and return the created instance.
 
GraphicsItemDesignerItemBasecreateFromJSON (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.
 
GraphicsItemDesignerItemBasecreateFromJSON (const ConstJsonObject &_jsonObject, const std::string &_typeKey)
 [/ref ValueType* createFromJSON(const ConstJsonObject& _jsonObject, const char* _typeKey) "x"].
 
- Protected Member Functions inherited from ot::FactoryTemplate< GraphicsItemDesignerItemBase >
 FactoryTemplate ()
 Protected constructor.
 
 ~FactoryTemplate ()
 Protected destructor.
 

Member Function Documentation

◆ createFromConfig()

GraphicsItemDesignerItemBase * WrappedItemFactory::createFromConfig ( const ot::GraphicsItemCfg * _config)
static

◆ instance()

WrappedItemFactory & WrappedItemFactory::instance ( void )
static

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