OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
EntityParameterizedDataPreviewTable.h
Go to the documentation of this file.
1#pragma once
2#pragma once
3
4#include "EntityResultTable.h"
5
6#include <string>
7#include <stdint.h>
8#include <vector>
9#include <map>
10
11class __declspec(dllexport) EntityParameterizedDataPreviewTable : public EntityResultTable<std::string>
12{
13public:
14
15 EntityParameterizedDataPreviewTable(ot::UID ID, EntityBase *parent, EntityObserver *mdl, ModelState *ms, ClassFactoryHandler* factory, const std::string &owner);
16 virtual std::string getClassName(void) { return "EntityParameterizedDataPreviewTable"; };
17
18 std::vector<std::pair<ot::UID, ot::UID>> GetLastStatusOfPreview() { return _displayedRanges; };
19 void AddRangeToPreviewStatus(std::pair<ot::UID, ot::UID> range) { _displayedRanges.push_back(range); }
20
21private:
22 std::vector<std::pair<ot::UID, ot::UID>> _displayedRanges;
23
24
25 virtual void AddStorageData(bsoncxx::builder::basic::document &storage);
26 virtual void readSpecificDataFromDataBase(bsoncxx::document::view &doc_view, std::map<ot::UID, EntityBase *> &entityMap) override;
27
28
29};
unsigned long UID
Unique identifier (32 bit unsigned integer)
Definition CoreTypes.h:27