OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
EntityBlockCircuitElement.h
Go to the documentation of this file.
1#pragma once
2#include "EntityBlock.h"
3class __declspec(dllexport) EntityBlockCircuitElement : public EntityBlock
4{
5public:
6 EntityBlockCircuitElement(ot::UID ID, EntityBase* parent, EntityObserver* obs, ModelState* ms, ClassFactoryHandler* factory, const std::string& owner);
7 virtual std::string getClassName(void) override { return "EntityBlockCircuitElement"; };
8 virtual entityType getEntityType(void) override { return TOPOLOGY; };
9 virtual void createProperties() = 0;
10
11
12 virtual ot::GraphicsItemCfg* CreateBlockCfg() = 0;
13
14
15
16private:
17
18
19
20
21 void AddStorageData(bsoncxx::builder::basic::document& storage) override;
22 void readSpecificDataFromDataBase(bsoncxx::document::view& doc_view, std::map<ot::UID, EntityBase*>& entityMap) override;
23
24
25};
The GraphicsItemCfg is the base class for all graphics item configurations.
Definition GraphicsItemCfg.h:33
unsigned long UID
Unique identifier (32 bit unsigned integer)
Definition CoreTypes.h:27