#include <ConfigSections.h>
|
| static constexpr std::string_view | NAME {"sub"} |
| static constexpr std::string_view | DESCRIPTION {"MQTT subscriptions to persist"} |
Definition at line 61 of file ConfigSections.h.
◆ ConfigSubscribe()
| mqtt::mqttstore::lib::ConfigSubscribe::ConfigSubscribe |
( |
utils::SubCommand * | parent | ) |
|
Definition at line 87 of file ConfigSections.cpp.
88 : utils::SubCommand(parent, this, "MQTT subscriptions")
89 ,
topicOpt(setConfigurable(addOption(
"--topic",
90 "Topic filter to persist; append ##<qos> to override QoS",
91 "string",
92 CLI::TypeValidator<std::string>()),
93 true)
94 ->take_all()) {
96 }
References topicOpt.
◆ ~ConfigSubscribe()
| mqtt::mqttstore::lib::ConfigSubscribe::~ConfigSubscribe |
( |
| ) |
|
|
overridedefault |
◆ getTopic()
| std::list< std::string > mqtt::mqttstore::lib::ConfigSubscribe::getTopic |
( |
| ) |
const |
|
nodiscard |
Definition at line 100 of file ConfigSections.cpp.
100 {
101 std::list<std::string> topicList =
topicOpt->as<std::list<std::string>>();
102
103 if (!topicList.empty() && topicList.front().empty()) {
104 topicList.pop_front();
105 }
106
107 return topicList;
108 }
References topicOpt.
◆ DESCRIPTION
| std::string_view mqtt::mqttstore::lib::ConfigSubscribe::DESCRIPTION {"MQTT subscriptions to persist"} |
|
staticconstexpr |
◆ NAME
| std::string_view mqtt::mqttstore::lib::ConfigSubscribe::NAME {"sub"} |
|
staticconstexpr |
◆ topicOpt
| CLI::Option* mqtt::mqttstore::lib::ConfigSubscribe::topicOpt |
|
private |
The documentation for this class was generated from the following files: