OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
WrappedItemFactory.h
Go to the documentation of this file.
1
4// ###########################################################################################################################################################################################################################################################################################################################
5
6#pragma once
7
8// OpenTwin header
11
12// std header
13#include <string>
14
16
17class WrappedItemFactory : public ot::FactoryTemplate<GraphicsItemDesignerItemBase> {
18public:
19 static WrappedItemFactory& instance(void);
20
22
23};
24
25template <class T>
26class WrappedItemFactoryRegistrar : public ot::FactoryRegistrarTemplate<WrappedItemFactory, T> {
27public:
29};
Definition GraphicsItemDesignerItemBase.h:25
Definition WrappedItemFactory.h:17
static WrappedItemFactory & instance(void)
Definition WrappedItemFactory.cpp:10
static GraphicsItemDesignerItemBase * createFromConfig(const ot::GraphicsItemCfg *_config)
Definition WrappedItemFactory.cpp:15
Definition WrappedItemFactory.h:26
WrappedItemFactoryRegistrar(const std::string &_key)
Definition WrappedItemFactory.h:28
The FactoryRegistrarTemplate may be used to register a constructor at the factory.
Definition FactoryTemplate.h:76
FactoryRegistrarTemplate(const std::string &_key)
Constructor.
Definition FactoryTemplate.hpp:73
The FactoryTemplate may be used to quickly create default factories that are only used for item creat...
Definition FactoryTemplate.h:24
The GraphicsItemCfg is the base class for all graphics item configurations.
Definition GraphicsItemCfg.h:33
Definition Connector.h:8