OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
EntityBlockFileWriter.h
Go to the documentation of this file.
1#pragma once
2#include "EntityBlock.h"
3
4class __declspec(dllexport) EntityBlockFileWriter : public EntityBlock
5{
6public:
7 EntityBlockFileWriter(ot::UID ID, EntityBase* parent, EntityObserver* obs, ModelState* ms, ClassFactoryHandler* factory, const std::string& owner);
8 virtual std::string getClassName(void) override { return "EntityBlockFileWriter"; };
9 virtual entityType getEntityType(void) override { return TOPOLOGY; }
10
11 void createProperties();
12 const std::string& getHeadline();
13 const std::string& getSelectedFileMode();
14 const std::string& getFileName();
15 const std::string& getFilePath();
16 virtual ot::GraphicsItemCfg* CreateBlockCfg() override;
17 const ot::Connector& getConnectorInput() const { return m_inputConnector; }
18 const std::string& getFileModeAppend() const { return m_fileModeAppend; }
19 const std::string& getFileModeOverride() const { return m_fileModeOverride; }
20
21 static std::string getIconName(){ return "TextFile.svg"; }
22
23private:
24 ot::Connector m_inputConnector;
25 const std::string m_fileModeAppend = "Append";
26 const std::string m_fileModeOverride = "Override";
27
28};
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