OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
EntityParameterizedDataTable.h
Go to the documentation of this file.
1#pragma once
2
3#include "EntityResultTable.h"
4
5#include <string>
6#include <stdint.h>
7#include <vector>
8#include <map>
9#include "OTGui/TableCfg.h"
10
11class __declspec(dllexport) EntityParameterizedDataTable : public EntityResultTable<std::string>
12{
13public:
14 EntityParameterizedDataTable(ot::UID ID, EntityBase *parent, EntityObserver *mdl, ModelState *ms, ClassFactoryHandler* factory, const std::string &owner);
15 void SetTableDimensions(uint32_t numberOfRows, uint32_t numberOfColumns);
16 void SetSourceFile(std::string sourceFileName, std::string sourceFilePath);
17 virtual std::string getClassName(void) { return "EntityParameterizedDataTable"; };
18 std::string getFileName() const { return _sourceFileName; }
19 std::string getFilePath() const { return _sourceFilePath; }
20
21 void createProperties(ot::TableCfg::TableHeaderMode _defaultHeaderMode);
22 std::string getSelectedHeaderModeString();
23 ot::TableCfg::TableHeaderMode getSelectedHeaderMode();
24
25private:
26 void createProperties() override {};
27 uint32_t _numberOfColumns = 0;
28 uint32_t _numberOfRows = 0;
29 std::vector<uint32_t> _numberOfUniquesInColumns;
30 std::string _sourceFileName;
31 std::string _sourceFilePath;
32 const std::string _defaulCategory = "tableInformation";
33
34 virtual void AddStorageData(bsoncxx::builder::basic::document &storage);
35 virtual void readSpecificDataFromDataBase(bsoncxx::document::view &doc_view, std::map<ot::UID, EntityBase *> &entityMap) override;
36
37
38};
TableHeaderMode
Definition TableCfg.h:21
unsigned long UID
Unique identifier (32 bit unsigned integer)
Definition CoreTypes.h:27