OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
CopyInformation.h
Go to the documentation of this file.
1
4// ###########################################################################################################################################################################################################################################################################################################################
5
6#pragma once
7
8// OpenTwin header
11
12// std header
13#include <string>
14
15#pragma warning(disable:4251)
16
17namespace ot {
18
20 public:
21 static std::string getCopyTypeJsonKey(void);
22 static std::string getCopyVersionJsonKey(void);
23
24 CopyInformation() = default;
27 virtual ~CopyInformation() = default;
28
29 CopyInformation& operator = (const CopyInformation&) = default;
30 CopyInformation& operator = (CopyInformation&&) = default;
31
32 virtual void addToJsonObject(ot::JsonValue& _object, ot::JsonAllocator& _allocator) const override;
33 virtual void setFromJsonObject(const ot::ConstJsonObject& _object) override;
34
35 virtual std::string getCopyType(void) const = 0;
36 virtual int getCopyVersion(void) const = 0;
37
38 };
39
40}
#define OT_CORE_API_EXPORT
Dll import.
Definition CoreAPIExport.h:8
Definition CopyInformation.h:19
virtual int getCopyVersion(void) const =0
CopyInformation()=default
CopyInformation(CopyInformation &&)=default
virtual std::string getCopyType(void) const =0
virtual ~CopyInformation()=default
CopyInformation(const CopyInformation &)=default
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