OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
OwnerService.h
Go to the documentation of this file.
1#pragma once
2
3#include "OTCore/Owner.h"
4
5namespace ot
6{
7 class __declspec(dllexport) OwnerService : public ot::Owner<ot::serviceID_t>
8 {
9 public:
10 OwnerService(ot::serviceID_t id = ot::invalidServiceID) : ot::Owner<ot::serviceID_t>(id) {};
11 bool getIdFromJson(JsonValue& _object, ot::serviceID_t& _id);
12 ot::OwnerService ownerFromJson(JsonValue& _object);
13 void addToJsonObject(JsonValue& _object, JsonAllocator& _allocator);
14
15 private:
16 const std::string m_jsonMemberName = "goid_";
17 };
18}
Definition Connector.h:8
static const serviceID_t invalidServiceID
The invalid service ID, a Service must not have this ID assigned.
Definition CoreTypes.h:17
unsigned short serviceID_t
ID type used to identify a service (16 bit unsigned integer).
Definition CoreTypes.h:14