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

#include "PropertyFactory.h"

Public Types

using PropertyConstructor = std::function<Property* ()>
 

Static Public Member Functions

static PropertyFactoryinstance (void)
 
static PropertycreateProperty (const ConstJsonObject &_jsonObject)
 
static PropertycreateProperty (const std::string &_propertyType)
 
static bool registerProperty (const std::string &_type, const PropertyConstructor &_constructor)
 

Member Typedef Documentation

◆ PropertyConstructor

Member Function Documentation

◆ createProperty() [1/2]

ot::Property * ot::PropertyFactory::createProperty ( const ConstJsonObject & _jsonObject)
static

◆ createProperty() [2/2]

ot::Property * ot::PropertyFactory::createProperty ( const std::string & _propertyType)
static

◆ instance()

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

◆ registerProperty()

bool ot::PropertyFactory::registerProperty ( const std::string & _type,
const PropertyConstructor & _constructor )
static

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