OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
EntityFileCSV.h
Go to the documentation of this file.
1#pragma once
2
3#include "EntityFileText.h"
5
6class __declspec(dllexport) EntityFileCSV : public EntityFileText, public IVisualisationTable
7{
8public:
9
10 EntityFileCSV(ot::UID ID, EntityBase *parent, EntityObserver *obs, ModelState *ms, ClassFactoryHandler* factory, const std::string &owner);
11
12 void setRowDelimiter(std::string _delimiter);
13 void setColumnDelimiter(std::string _delimiter);
14 std::string getRowDelimiter() ;
15 std::string getColumnDelimiter();
16 virtual std::string getClassName(void) override { return "EntityFileCSV"; };
17
18 // Inherited via IVisualisationTable
19 const ot::GenericDataStructMatrix getTable() override;
20 void setTable(const ot::GenericDataStructMatrix& _table) override;
21 ot::TableCfg getTableConfig() override;
22 bool visualiseTable() override;
23 ot::ContentChangedHandling getTableContentChangedHandling() override;
24
25 ot::TableCfg::TableHeaderMode getHeaderMode(void) override;
26 bool visualiseText() override;
27 char getDecimalDelimiter() override;
28 bool getEvaluateEscapeCharacter(void);
29
30private:
31 void setSpecializedProperties() override;
32 void AddStorageData(bsoncxx::builder::basic::document& storage) override;
33 void readSpecificDataFromDataBase(bsoncxx::document::view& doc_view, std::map<ot::UID, EntityBase *> &entityMap) override;
34
35 std::string m_rowDelimiterDefault = "\\n";
36 std::string m_columnDelimiterDefault = ";";
37 bool m_evaluateEscapeCharacterDefault = false;
38
40};
Definition TableCfg.h:19
TableHeaderMode
Definition TableCfg.h:21
unsigned long UID
Unique identifier (32 bit unsigned integer)
Definition CoreTypes.h:27
ContentChangedHandling
Defines how the model service shall deal with a content changed notification from the ui....
Definition ContentChangedHandling.h:8