OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
ProjectTemplateInformation.h
Go to the documentation of this file.
1
4// ###########################################################################################################################################################################################################################################################################################################################
5
6#pragma once
7
8// OpenTwin header
12
13// std header
14#include <string>
15
16#pragma warning(disable:4251)
17
18namespace ot {
19
21 public:
25
27
28 virtual void addToJsonObject(ot::JsonValue& _object, ot::JsonAllocator& _allocator) const override;
29
30 virtual void setFromJsonObject(const ot::ConstJsonObject& _object) override;
31
32 void setName(const std::string& _name) { m_name = _name; };
33 const std::string& getName(void) const { return m_name; };
34
35 void setProjectType(const std::string& _type) { m_projectType = _type; };
36 const std::string& getProjectType(void) const { return m_projectType; };
37
38 void setBriefDescription(const std::string& _description) { m_briefDescription = _description; };
39 const std::string& getBriefDescription(void) const { return m_briefDescription; };
40
41 void setDescription(const StyledTextBuilder& _description) { m_description = _description; };
42 const StyledTextBuilder& getDescription(void) const { return m_description; };
43
44 void setIsDefault(bool _isDefault) { m_isDefault = _isDefault; };
45 bool getIsDefault(void) const { return m_isDefault; };
46
47 private:
48 std::string m_name;
49 std::string m_projectType;
50 std::string m_briefDescription;
51 StyledTextBuilder m_description;
52 bool m_isDefault;
53 };
54
55}
#define OT_GUI_API_EXPORT
Definition OTGuiAPIExport.h:9
Definition ProjectTemplateInformation.h:20
void setDescription(const StyledTextBuilder &_description)
Definition ProjectTemplateInformation.h:41
const std::string & getName(void) const
Definition ProjectTemplateInformation.h:33
const std::string & getProjectType(void) const
Definition ProjectTemplateInformation.h:36
void setName(const std::string &_name)
Definition ProjectTemplateInformation.h:32
void setProjectType(const std::string &_type)
Definition ProjectTemplateInformation.h:35
const std::string & getBriefDescription(void) const
Definition ProjectTemplateInformation.h:39
bool getIsDefault(void) const
Definition ProjectTemplateInformation.h:45
void setBriefDescription(const std::string &_description)
Definition ProjectTemplateInformation.h:38
const StyledTextBuilder & getDescription(void) const
Definition ProjectTemplateInformation.h:42
void setIsDefault(bool _isDefault)
Definition ProjectTemplateInformation.h:44
The Serializable class is the default interface of serializable objects.
Definition Serializable.h:17
Definition StyledTextBuilder.h:16
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