lintel 0.2.0
Loading...
Searching...
No Matches
EventBusEntry.h
Go to the documentation of this file.
1#ifndef LINTEL_EVENTBUSENTRY_H
2#define LINTEL_EVENTBUSENTRY_H
3
4#include <cstddef>
5#include <ostream>
6#include <string>
7#include <string_view>
8
10
11namespace lintel {
13class EventBusEntry : public Entry
14{
15private:
17 const std::string eventBusName;
19 const std::string segmentName;
21 const std::size_t busCapacity;
23 const std::size_t subscriberCapacity;
25 const std::size_t maxTopics;
27 const std::size_t maxSubscribers;
28
29public:
38 EventBusEntry(const std::string_view &component,
39 std::string eventBusName,
40 std::string segmentName,
41 std::size_t busCapacity,
42 std::size_t subscriberCapacity,
43 std::size_t maxTopics,
44 std::size_t maxSubscribers);
45
48 [[nodiscard]] const std::string &getName() const;
49
52 [[nodiscard]] const std::string &getSegment() const;
53
56 [[nodiscard]] constexpr std::size_t getBusCapacity() const { return busCapacity; }
57
60 [[nodiscard]] constexpr std::size_t getSubscriberCapacity() const { return subscriberCapacity; }
61
64 [[nodiscard]] constexpr std::size_t getMaxTopics() const { return maxTopics; }
65
68 [[nodiscard]] constexpr std::size_t getMaxSubscribers() const { return maxSubscribers; }
69
74 friend std::ostream &operator<<(std::ostream &os, const EventBusEntry &entry);
75};
76
77}// namespace lintel
78#endif// LINTEL_EVENTBUSENTRY_H
Definition Entry.h:10
Definition EventBusEntry.h:14
constexpr std::size_t getMaxSubscribers() const
Definition EventBusEntry.h:68
const std::string & getName() const
friend std::ostream & operator<<(std::ostream &os, const EventBusEntry &entry)
EventBusEntry(const std::string_view &component, std::string eventBusName, std::string segmentName, std::size_t busCapacity, std::size_t subscriberCapacity, std::size_t maxTopics, std::size_t maxSubscribers)
constexpr std::size_t getSubscriberCapacity() const
Definition EventBusEntry.h:60
constexpr std::size_t getBusCapacity() const
Definition EventBusEntry.h:56
constexpr std::size_t getMaxTopics() const
Definition EventBusEntry.h:64
const std::string & getSegment() const
Definition BaseFeature.h:6
constexpr std::string_view type_name()
Definition TypeName.h:9