OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
ThisService.h
Go to the documentation of this file.
1
4// ###########################################################################################################################################################################################################################################################################################################################
5
6#pragma once
7
8// OpenTwin header
9#include "OTCore/JSON.h"
10#include "OTCore/ServiceBase.h"
12
13namespace ot {
14
20 public:
22 static ThisService& instance(void);
23
25 static void addIdToJsonDocument(JsonDocument& _document);
26
28 static serviceID_t getIdFromJsonDocument(const JsonDocument& _document);
29
30 private:
32 ThisService() {};
33
35 ~ThisService() {};
36 };
37
38}
#define OT_CORE_API_EXPORT
Dll import.
Definition CoreAPIExport.h:8
#define OT_DECL_NOCOPY(___class)
Removes the default copy constructor and assignment operator.
Definition OTClassHelper.h:14
JSON document.
Definition JSON.h:276
General service information. The ServiceBase class is used to store the general service information.
Definition ServiceBase.h:24
The central service information class of a service. The ThisService is a singleton that should be use...
Definition ThisService.h:18
Definition Connector.h:8
unsigned short serviceID_t
ID type used to identify a service (16 bit unsigned integer).
Definition CoreTypes.h:14