OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
ClassFactoryHandlerAbstract.h
Go to the documentation of this file.
1#pragma once
3
4class _declspec(dllexport) ClassFactoryHandlerAbstract : public ClassFactoryHandler
5{
6public:
7 virtual ClassFactoryHandler* SetNextHandler(ClassFactoryHandler* nextHandler) override
8 {
9 _nextHandler = nextHandler;
10 return _nextHandler;
11 }
12
13 virtual EntityBase* CreateEntity(const std::string& className) override
14 {
15 if (_nextHandler != nullptr)
16 {
17 return _nextHandler->CreateEntity(className);
18 }
19 return nullptr;
20 }
21
22private:
23 ClassFactoryHandler* _nextHandler = nullptr;
24};