OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
EntityParameterizedDataCategorization.h
Go to the documentation of this file.
1#pragma once
2#include "EntityContainer.h"
3#include <map>
4#include <string>
5
6class __declspec(dllexport) EntityParameterizedDataCategorization: public EntityContainer
7{
8public:
9 enum DataCategorie { researchMetadata, measurementSeriesMetadata, quantity, parameter, UNKNOWN};
10 EntityParameterizedDataCategorization(ot::UID ID, EntityBase *parent, EntityObserver *obs, ModelState *ms, ClassFactoryHandler* factory, const std::string &owner);
11
12 virtual std::string getClassName(void) override { return "EntityParameterizedDataCategorization"; };
13 virtual void addVisualizationNodes() override;
14
15 virtual bool considerForPropertyFilter(void) override { return true; };
16 virtual bool considerChildrenForPropertyFilter(void) override { return false; };
17
18 void CreateProperties(DataCategorie categorie);
19 DataCategorie GetSelectedDataCategorie() { return _selectedCategory; };
20
21 static std::string GetStringDataCategorization(EntityParameterizedDataCategorization::DataCategorie category);
22
23
24private:
25 static const std::string _dataCategorieGroup;
26 static const std::string _defaultCategory ;
27 static const std::string _dataCategorieRMD;
28 static const std::string _dataCategorieMSMD ;
29 static const std::string _dataCategorieParam;
30 static const std::string _dataCategorieQuant;
31
32 DataCategorie _selectedCategory = UNKNOWN;
33
34 virtual void AddStorageData(bsoncxx::builder::basic::document& storage) override;
35 virtual void readSpecificDataFromDataBase(bsoncxx::document::view& doc_view, std::map<ot::UID, EntityBase *> &entityMap) override;
36 virtual int getSchemaVersion() { return 1; };
37
38 static std::map<std::string, DataCategorie> _stringDataCategorieMapping;
39 static std::map<DataCategorie, std::string> _dataCategorieStringMapping;
40};
unsigned long UID
Unique identifier (32 bit unsigned integer)
Definition CoreTypes.h:27
@ UNKNOWN
Definition Connector.h:9