OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
BasicServiceInformation.h
Go to the documentation of this file.
1
4// ###########################################################################################################################################################################################################################################################################################################################
5
6#pragma once
7
8// OpenTwin header
10
11// std header
12#include <string>
13
14#pragma warning(disable:4251)
15
16namespace ot {
17
22 public:
24 BasicServiceInformation(const std::string& _serviceNameAndType);
25 BasicServiceInformation(const std::string& _serviceName, const std::string& _serviceType);
28
29 BasicServiceInformation& operator = (const BasicServiceInformation& _other);
30 bool operator == (const BasicServiceInformation& _other) const;
31 bool operator != (const BasicServiceInformation& _other) const;
32 bool operator < (const BasicServiceInformation& _other) const;
33
37 virtual void addToJsonObject(JsonValue& _object, JsonAllocator& _allocator) const override;
38
42 virtual void setFromJsonObject(const ConstJsonObject& _object) override;
43
44 void setServiceName(const std::string& _serviceName) { m_name = _serviceName; };
45 const std::string& serviceName(void) const { return m_name; };
46
47 void setServiceType(const std::string& _serviceType) { m_type = _serviceType; };
48 const std::string& serviceType(void) const { return m_type; };
49
50 private:
51 std::string m_name;
52 std::string m_type;
53
54 };
55
56}
#define OT_CORE_API_EXPORT
Dll import.
Definition CoreAPIExport.h:8
bool operator==(const FaceSelection &left, const FaceSelection &right)
Definition Model.cpp:55
The BasicServiceInformation class is used to hold a service name and type. The BasicServiceInformatio...
Definition BasicServiceInformation.h:21
const std::string & serviceType(void) const
Definition BasicServiceInformation.h:48
void setServiceName(const std::string &_serviceName)
Definition BasicServiceInformation.h:44
const std::string & serviceName(void) const
Definition BasicServiceInformation.h:45
void setServiceType(const std::string &_serviceType)
Definition BasicServiceInformation.h:47
The Serializable class is the default interface of serializable objects.
Definition Serializable.h:17
Definition Connector.h:8
rapidjson::Value JsonValue
Writable JSON value.
Definition JSON.h:27
rapidjson::GenericObject< true, rapidjson::GenericValue< rapidjson::UTF8<>, rapidjson::MemoryPoolAllocator< rapidjson::CrtAllocator > > > ConstJsonObject
Read only JSON Object.
Definition JSON.h:35
rapidjson::MemoryPoolAllocator< rapidjson::CrtAllocator > JsonAllocator
Allocator used for writing to JSON values.
Definition JSON.h:30