OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
EntityInformation.h
Go to the documentation of this file.
1#pragma once
2
3// OpenTwin header
6
7// std header
8#include <string>
9
10class EntityBase;
11
12namespace ot {
13
15 public:
17 EntityInformation(EntityBase* _entity);
19 virtual ~EntityInformation();
20
21 EntityInformation& operator = (const EntityInformation&) = default;
22
26 virtual void addToJsonObject(ot::JsonValue& _object, ot::JsonAllocator& _allocator) const override;
27
31 virtual void setFromJsonObject(const ot::ConstJsonObject& _object) override;
32
33 void setEntityType(std::string _type) { m_type = _type; };
34 const std::string& getEntityType(void) const { return m_type; };
35
36 private:
37 std::string m_type;
38 };
39
40}
#define OT_SERVICEFOUNDATION_API_EXPORT
Definition FoundationAPIExport.h:7
Definition BasicEntityInformation.h:19
Definition EntityInformation.h:14
const std::string & getEntityType(void) const
Definition EntityInformation.h:34
void setEntityType(std::string _type)
Definition EntityInformation.h:33
EntityInformation(const EntityInformation &)=default
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