OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
CrossCollectionAccess.h
Go to the documentation of this file.
1/*****************************************************************/
9#pragma once
10#include <memory>
11#include <list>
12
13#include "OTCore/CoreTypes.h"
17
18class ClassFactory;
19
20class __declspec(dllexport) CrossCollectionAccess
21{
22public:
23 CrossCollectionAccess(const std::string& collectionName, const std::string& sessionServiceURL, const std::string& modelServiceURL);
24 std::list<std::shared_ptr<EntityMetadataSeries>> getMeasurementMetadata(ot::components::ModelComponent& modelComponent, ClassFactory* classFactory);
25 std::shared_ptr<EntityMetadataCampaign> getMeasurementCampaignMetadata(ot::components::ModelComponent& modelComponent, ClassFactory* classFactory);
26
27private:
28 std::string _collectionName;
29 std::string _modelServiceURL;
30 std::pair<ot::UIDList,ot::UIDList> InquireMetadataEntityIdentifier(const std::string& className);
31};
32
34{
35public:
36 DataBaseWrapper(const std::string& collectionName);
38private:
39 const std::string _oldCollectionName;
40};
Definition CrossCollectionAccess.h:34
DataBaseWrapper(const std::string &collectionName)
Definition CrossCollectionAccess.cpp:92
~DataBaseWrapper()
Definition CrossCollectionAccess.cpp:98
Definition ModelComponent.h:42