OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
Painter2DFactory.h
Go to the documentation of this file.
1
5// ###########################################################################################################################################################################################################################################################################################################################
6
7#pragma once
8
9// OpenTwin header
11#include "OTGui/Painter2D.h"
13
14namespace ot {
15
17 public:
18 static Painter2DFactory& instance(void);
19
20 static Painter2D* create(const ConstJsonObject& _jsonObject);
21
22 private:
24 virtual ~Painter2DFactory() {};
25 };
26
27 template <class T>
29 public:
31 };
32}
#define OT_GUI_API_EXPORT
Definition OTGuiAPIExport.h:9
The FactoryRegistrarTemplate may be used to register a constructor at the factory.
Definition FactoryTemplate.h:76
The FactoryTemplate may be used to quickly create default factories that are only used for item creat...
Definition FactoryTemplate.h:24
Definition Painter2DFactory.h:16
virtual ~Painter2DFactory()
Definition Painter2DFactory.h:24
Definition Painter2DFactory.h:28
Painter2DFactoryRegistrar(const std::string &_key)
Definition Painter2DFactory.h:30
Definition Painter2D.h:17
Definition Connector.h:8
rapidjson::GenericObject< true, rapidjson::GenericValue< rapidjson::UTF8<>, rapidjson::MemoryPoolAllocator< rapidjson::CrtAllocator > > > ConstJsonObject
Read only JSON Object.
Definition JSON.h:35