OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
TabledataToResultdataHandler.h
Go to the documentation of this file.
1/*****************************************************************/
8#pragma once
9#include <map>
10#include <string>
11#include <list>
12#include <memory>
13
16#include "KeyValuesExtractor.h"
18#include "MetadataEntry.h"
19#include "DatasetDescription.h"
20#include "IVisualisationTable.h"
21
23{
25
26public:
27 TabledataToResultdataHandler(const std::string& _datasetFolder, const std::string& _tableFolder);
28 void createDataCollection(const std::string& _dbURL, const std::string& _projectName);
29
30private:
31
32 const std::string m_datasetFolder;
33 const std::string m_tableFolder;
34 const std::string m_dbURL;
35
36 const std::string m_rmdEntityName = "Campaign Metadata";
37
38 std::map<std::string, MetadataAssemblyData> getAllMetadataAssemblies();
39 void addRequiredTables(const MetadataAssemblyData& _dataAssembly, std::list<string>& _requiredTables);
40 void loadRequiredTables(std::list<string>& _requiredTables, std::map<std::string, std::shared_ptr<IVisualisationTable>>& _loadedTables);
41
42 void extractRMDAndAllMSMD(std::map<std::string, MetadataAssemblyData>& _allMetadataAssembliesByName, std::list<std::shared_ptr<EntityTableSelectedRanges>>& _allRangeEntities);
43 void extractAllParameter(std::map<std::string, MetadataAssemblyData>& _allMetadataAssembliesByName, std::list<std::shared_ptr<EntityTableSelectedRanges>>& _allRangeEntities);
44 void extractAllQuantities(std::map<std::string, MetadataAssemblyData>& _allMetadataAssembliesByName, std::list<std::shared_ptr<EntityTableSelectedRanges>>& _allRangeEntities);
45
46 std::list<std::shared_ptr<MetadataEntry>> rangeData2MetadataEntries(KeyValuesExtractor&& _assembyRangeData);
47
48 std::list<DatasetDescription> extractDataset(const MetadataAssemblyData& _metadataAssembly, std::map<std::string, std::shared_ptr<IVisualisationTable>> loadedTables, KeyValuesExtractor& _outSeriesMetadata);
49 std::string extractUnitFromName(std::string& _name);
50};
Container for groups of TableSelectionEntities that describe the same metadata categorization.
Common methods for all central handler classes.
Definition BusinessLogicHandler.h:16
Definition FixtureTabledataToResultdataHandler.h:5
Definition KeyValuesExtractor.h:13
Definition TabledataToResultdataHandler.h:23
void createDataCollection(const std::string &_dbURL, const std::string &_projectName)
Definition TabledataToResultdataHandler.cpp:37
TabledataToResultdataHandler(const std::string &_datasetFolder, const std::string &_tableFolder)
Definition TabledataToResultdataHandler.cpp:32
Definition MetadataAssemblyData.h:13