lintel 0.2.0
Loading...
Searching...
No Matches
PropertyDto.h
Go to the documentation of this file.
1#ifndef LINTEL_PROPERTYDTO_H
2#define LINTEL_PROPERTYDTO_H
3
4#include <memory>
5
9
10namespace lintel {
13{
14private:
15 std::string m_name;
16 std::string m_instanceName;
17 std::string m_className;
18 std::string m_processName;
19 bool m_runtimeChange = false;
20 std::string m_description;
22 std::string m_extraInformation;
23 std::string m_value;
24 std::string m_type;
25
26 static struct Shapes
27 {
28 const std::string NAME = "name";
29 const std::string INSTANCE = "instance";
30 const std::string CLASS = "class";
31 const std::string PROCESS = "process";
32 const std::string RUNTIME_CHANGE = "runtime_change";
33 const std::string DESCRIPTION = "description";
34 const std::string TYPE = "type";
35 const std::string REPOSITORY_TYPE = "repository_type";
36 const std::string VALUE = "value";
37 const std::string EXTRA_INFORMATION = "extra_information";
38 } m_shape;
39
40public:
42 explicit PropertyDto(const std::shared_ptr<PropertyBase> &property);
43
44 PropertyDto() = default;
45
47 [[nodiscard]] const std::string &getName() const;
48
50 [[nodiscard]] const std::string &getInstanceName() const;
51
53 [[nodiscard]] const std::string &getClassName() const;
54
56 [[nodiscard]] const std::string &getProcessName() const;
57
59 [[nodiscard]] bool isRuntimeChange() const;
60
62 [[nodiscard]] const std::string &getDescription() const;
63
66
68 [[nodiscard]] const std::string &getExtraInformation() const;
69
71 [[nodiscard]] const std::string &getValue() const;
72
74 [[nodiscard]] const std::string &getType() const;
75
76 void serialize(rapidjson::Writer<rapidjson::StringBuffer> *writer) const override;
77
78 bool deserialize(const rapidjson::Value &obj) override;
79};
80
81}// namespace lintel
82#endif// LINTEL_PROPERTYDTO_H
Definition JsonSerializable.h:17
Definition PropertyDto.h:13
const std::string & getExtraInformation() const
bool deserialize(const rapidjson::Value &obj) override
const std::string & getType() const
const std::string & getInstanceName() const
const std::string & getClassName() const
const std::string & getValue() const
const PropertyRepositoryType & getRepositoryType() const
const std::string & getDescription() const
bool isRuntimeChange() const
void serialize(rapidjson::Writer< rapidjson::StringBuffer > *writer) const override
PropertyDto(const std::shared_ptr< PropertyBase > &property)
const std::string & getName() const
const std::string & getProcessName() const
Definition PropertyRepositoryType.h:11
@ UNDEFINED
Definition PropertyRepositoryType.h:15
Definition BaseFeature.h:6
constexpr std::string_view type_name()
Definition TypeName.h:9