lintel 0.2.0
Loading...
Searching...
No Matches
PropertyValueDto.h
Go to the documentation of this file.
1#ifndef LINTEL_PROPERTYVALUEDTO_H
2#define LINTEL_PROPERTYVALUEDTO_H
3
4#include <string>
5
7
8namespace lintel {
11{
12private:
13 std::string m_value;
14
15 static struct Shapes
16 {
17 const std::string VALUE = "value";
18 } m_shapes;
19
20public:
22 explicit PropertyValueDto(std::string value);
23
24 PropertyValueDto() = default;
25
27 [[nodiscard]] const std::string &getValue() const;
28
29 void serialize(rapidjson::Writer<rapidjson::StringBuffer> *writer) const override;
30
31 bool deserialize(const rapidjson::Value &obj) override;
32};
33
34}// namespace lintel
35#endif// LINTEL_PROPERTYVALUEDTO_H
Definition JsonSerializable.h:17
Definition PropertyValueDto.h:11
PropertyValueDto(std::string value)
void serialize(rapidjson::Writer< rapidjson::StringBuffer > *writer) const override
const std::string & getValue() const
bool deserialize(const rapidjson::Value &obj) override
Definition BaseFeature.h:6
constexpr std::string_view type_name()
Definition TypeName.h:9