OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
ModelAPIManager.h
Go to the documentation of this file.
1
4// ###########################################################################################################################################################################################################################################################################################################################
5
6#pragma once
7
8// OpenTwin header
9#include "OTCore/JSON.h"
13
14// std header
15#include <string>
16
17namespace ot {
18
22 public:
23 static void setModelServiceURL(const std::string& _url);
24 static const std::string& getModelServiceURL(void);
25
26 static bool sendToModel(MessageType _messageType, const std::string& _message, std::string& _response);
27 static bool sendToModel(MessageType _messageType, const JsonDocument& _doc, std::string& _response);
28
29 private:
30 static ModelAPIManager& instance(void);
31
34
35 std::string m_serviceUrl;
36 };
37
38}
This file contains defines that may be used simplyfy class creation.
#define OT_DECL_NOMOVE(___class)
Removes the default move constructor and move operator.
Definition OTClassHelper.h:18
#define OT_DECL_NOCOPY(___class)
Removes the default copy constructor and assignment operator.
Definition OTClassHelper.h:14
#define OT_MODELAPI_API_EXPORT
Definition OTModelAPIExport.h:11
JSON document.
Definition JSON.h:276
Definition ModelAPIManager.h:19
Definition Connector.h:8
MessageType
The message types describes how a message should be delivered.
Definition CommunicationTypes.h:10