OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
ClassFactoryHandler.h
Go to the documentation of this file.
1#pragma once
2#pragma warning(disable : 4251)
3#include <string>
4#include "EntityBase.h"
5class _declspec(dllexport) ClassFactoryHandler
6{
7public:
8 virtual ClassFactoryHandler* SetNextHandler(ClassFactoryHandler* nextHandler) = 0;
9 virtual EntityBase* CreateEntity(const std::string& className) = 0;
10 void SetChainRoot(ClassFactoryHandler* root) { _chainRoot = root; };
11 ClassFactoryHandler* GetChainRoot() { return _chainRoot; }
12
13protected:
14 ClassFactoryHandler* _chainRoot = nullptr;
15};