lintel 0.2.0
Loading...
Searching...
No Matches
MessageQueueEntry.h
Go to the documentation of this file.
1#ifndef LINTEL_MESSAGEQUEUEENTRY_H
2#define LINTEL_MESSAGEQUEUEENTRY_H
3
4#include <cstdint>
5#include <ostream>
6#include <string>
7#include <string_view>
8
10
11namespace lintel {
14{
15private:
17 const std::string processName;
19 const std::string messageQueueName;
21 const int32_t maxMessages;
22
23public:
29 MessageQueueEntry(const std::string_view &component,
30 std::string processName,
31 std::string messageQueueName,
32 int32_t maxMessages);
33
36 [[nodiscard]] const std::string &get_process_name() const;
37
40 [[nodiscard]] const std::string &get_message_queue_name() const;
41
44 [[nodiscard]] constexpr int32_t get_max_messages() const { return maxMessages; }
45
50 friend std::ostream &operator<<(std::ostream &os, const MessageQueueEntry &entry);
51};
52
53}// namespace lintel
54#endif// LINTEL_MESSAGEQUEUEENTRY_H
Definition Entry.h:10
Definition MessageQueueEntry.h:14
MessageQueueEntry(const std::string_view &component, std::string processName, std::string messageQueueName, int32_t maxMessages)
const std::string & get_message_queue_name() const
friend std::ostream & operator<<(std::ostream &os, const MessageQueueEntry &entry)
constexpr int32_t get_max_messages() const
Definition MessageQueueEntry.h:44
const std::string & get_process_name() const
Definition BaseFeature.h:6
constexpr std::string_view type_name()
Definition TypeName.h:9