lintel 0.2.0
Loading...
Searching...
No Matches
MessageQueueDto.h
Go to the documentation of this file.
1#ifndef LINTEL_MESSAGEQUEUEDTO_H
2#define LINTEL_MESSAGEQUEUEDTO_H
3
6#include <cstdint>
7#include <rapidjson/document.h>
8#include <rapidjson/stringbuffer.h>
9#include <string>
10
11namespace lintel {
14{
16 std::string m_name;
18 std::string m_process;
20 int32_t m_maxMessages{};
22 int32_t m_messages{};
23
25 static struct Shapes
26 {
27 const char *const NAME = "NAME";
28 const char *const PROCESS = "PROCESS";
29 const char *const MAX_MESSAGES = "MAX_MESSAGES";
30 const char *const MESSAGES = "MESSAGES";
31 } m_shape;
32
33public:
35 MessageQueueDto() = default;
36
41
44 [[nodiscard]] const std::string &getName() const;
45
48 [[nodiscard]] const std::string &getProcess() const;
49
53
57
60 void serialize(rapidjson::Writer<rapidjson::StringBuffer> *writer) const override;
61
65 bool deserialize(const rapidjson::Value &obj) override;
66};
67
68}// namespace lintel
69#endif// LINTEL_MESSAGEQUEUEDTO_H
Definition JsonSerializable.h:17
Definition MessageQueueDto.h:14
int32_t getMaxMessages() const
void serialize(rapidjson::Writer< rapidjson::StringBuffer > *writer) const override
MessageQueueDto(const MessageQueueEntry &messsageQueueEntry, int32_t messages)
bool deserialize(const rapidjson::Value &obj) override
int32_t getMessages() const
const std::string & getProcess() const
const std::string & getName() const
Definition MessageQueueEntry.h:14
Definition BaseFeature.h:6
constexpr std::string_view type_name()
Definition TypeName.h:9