#include <ConfigSections.h>
Public Member Functions | |
| ConfigSession (utils::SubCommand *parent) | |
| ~ConfigSession () override | |
| std::string | getClientId () const |
| const ConfigSession & | setClientId (const std::string &clientId) const |
| uint8_t | getQoS () const |
| const ConfigSession & | setQos (uint8_t qoS) const |
| bool | getRetainSession () const |
| const ConfigSession & | setRetainSession (bool retainSession) const |
| uint16_t | getKeepAlive () const |
| const ConfigSession & | setKeepAlive (uint16_t keepAlive) const |
| std::string | getWillTopic () const |
| const ConfigSession & | setWillTopic (const std::string &willTopic) const |
| std::string | getWillMessage () const |
| const ConfigSession & | setWillMessage (const std::string &willMessage) const |
| uint8_t | getWillQoS () const |
| const ConfigSession & | settWillQoS (uint8_t willQoS) const |
| bool | getWillRetain () const |
| const ConfigSession & | setWillRetain (bool willRetain) const |
| std::string | getUsername () const |
| const ConfigSession & | settUsername (const std::string &username) const |
| std::string | getPassword () const |
| const ConfigSession & | setPassword (const std::string &password) const |
Static Public Attributes | |
| static constexpr std::string_view | NAME {"session"} |
| static constexpr std::string_view | DESCRIPTION {"MQTT session behavior"} |
Private Attributes | |
| CLI::Option * | clientIdOpt |
| CLI::Option * | qoSOpt |
| CLI::Option * | retainSessionOpt |
| CLI::Option * | keepAliveOpt |
| CLI::Option * | willTopicOpt |
| CLI::Option * | willMessageOpt |
| CLI::Option * | willQoSOpt |
| CLI::Option * | willRetainOpt |
| CLI::Option * | usernameOpt |
| CLI::Option * | passwordOpt |
Definition at line 98 of file ConfigSections.h.
| mqtt::mqttcli::lib::ConfigSession::ConfigSession | ( | utils::SubCommand * | parent | ) |
Definition at line 123 of file ConfigSections.cpp.
References clientIdOpt, qoSOpt, and retainSessionOpt.
|
overridedefault |
| std::string mqtt::mqttcli::lib::ConfigSession::getClientId | ( | ) | const |
Definition at line 152 of file ConfigSections.cpp.
References clientIdOpt.
Referenced by mqtt::mqttcli::SocketContextFactory::create().
| uint16_t mqtt::mqttcli::lib::ConfigSession::getKeepAlive | ( | ) | const |
Definition at line 182 of file ConfigSections.cpp.
References keepAliveOpt.
Referenced by mqtt::mqttcli::SocketContextFactory::create().
| std::string mqtt::mqttcli::lib::ConfigSession::getPassword | ( | ) | const |
Definition at line 242 of file ConfigSections.cpp.
References passwordOpt.
Referenced by mqtt::mqttcli::SocketContextFactory::create().
| uint8_t mqtt::mqttcli::lib::ConfigSession::getQoS | ( | ) | const |
Definition at line 162 of file ConfigSections.cpp.
References qoSOpt.
Referenced by mqtt::mqttcli::SocketContextFactory::create().
| bool mqtt::mqttcli::lib::ConfigSession::getRetainSession | ( | ) | const |
Definition at line 172 of file ConfigSections.cpp.
References retainSessionOpt.
Referenced by mqtt::mqttcli::SocketContextFactory::create().
| std::string mqtt::mqttcli::lib::ConfigSession::getUsername | ( | ) | const |
Definition at line 232 of file ConfigSections.cpp.
References usernameOpt.
Referenced by mqtt::mqttcli::SocketContextFactory::create().
| std::string mqtt::mqttcli::lib::ConfigSession::getWillMessage | ( | ) | const |
Definition at line 202 of file ConfigSections.cpp.
References willMessageOpt.
Referenced by mqtt::mqttcli::SocketContextFactory::create().
| uint8_t mqtt::mqttcli::lib::ConfigSession::getWillQoS | ( | ) | const |
Definition at line 212 of file ConfigSections.cpp.
References willQoSOpt.
Referenced by mqtt::mqttcli::SocketContextFactory::create().
| bool mqtt::mqttcli::lib::ConfigSession::getWillRetain | ( | ) | const |
Definition at line 222 of file ConfigSections.cpp.
References willRetainOpt.
Referenced by mqtt::mqttcli::SocketContextFactory::create().
| std::string mqtt::mqttcli::lib::ConfigSession::getWillTopic | ( | ) | const |
Definition at line 192 of file ConfigSections.cpp.
References willTopicOpt.
Referenced by mqtt::mqttcli::SocketContextFactory::create().
| const ConfigSession & mqtt::mqttcli::lib::ConfigSession::setClientId | ( | const std::string & | clientId | ) | const |
Definition at line 156 of file ConfigSections.cpp.
References clientIdOpt.
| const ConfigSession & mqtt::mqttcli::lib::ConfigSession::setKeepAlive | ( | uint16_t | keepAlive | ) | const |
Definition at line 186 of file ConfigSections.cpp.
References keepAliveOpt.
| const ConfigSession & mqtt::mqttcli::lib::ConfigSession::setPassword | ( | const std::string & | password | ) | const |
Definition at line 246 of file ConfigSections.cpp.
References passwordOpt.
| const ConfigSession & mqtt::mqttcli::lib::ConfigSession::setQos | ( | uint8_t | qoS | ) | const |
Definition at line 166 of file ConfigSections.cpp.
References qoSOpt.
| const ConfigSession & mqtt::mqttcli::lib::ConfigSession::setRetainSession | ( | bool | retainSession | ) | const |
Definition at line 176 of file ConfigSections.cpp.
References retainSessionOpt.
| const ConfigSession & mqtt::mqttcli::lib::ConfigSession::settUsername | ( | const std::string & | username | ) | const |
Definition at line 236 of file ConfigSections.cpp.
References usernameOpt.
| const ConfigSession & mqtt::mqttcli::lib::ConfigSession::settWillQoS | ( | uint8_t | willQoS | ) | const |
Definition at line 216 of file ConfigSections.cpp.
References willQoSOpt.
| const ConfigSession & mqtt::mqttcli::lib::ConfigSession::setWillMessage | ( | const std::string & | willMessage | ) | const |
Definition at line 206 of file ConfigSections.cpp.
References willMessageOpt.
| const ConfigSession & mqtt::mqttcli::lib::ConfigSession::setWillRetain | ( | bool | willRetain | ) | const |
Definition at line 226 of file ConfigSections.cpp.
References willRetainOpt.
| const ConfigSession & mqtt::mqttcli::lib::ConfigSession::setWillTopic | ( | const std::string & | willTopic | ) | const |
Definition at line 196 of file ConfigSections.cpp.
References willTopicOpt.
|
private |
Definition at line 148 of file ConfigSections.h.
Referenced by ConfigSession(), getClientId(), and setClientId().
|
staticconstexpr |
Definition at line 101 of file ConfigSections.h.
|
private |
Definition at line 151 of file ConfigSections.h.
Referenced by getKeepAlive(), and setKeepAlive().
|
staticconstexpr |
Definition at line 100 of file ConfigSections.h.
|
private |
Definition at line 157 of file ConfigSections.h.
Referenced by getPassword(), and setPassword().
|
private |
Definition at line 149 of file ConfigSections.h.
Referenced by ConfigSession(), getQoS(), and setQos().
|
private |
Definition at line 150 of file ConfigSections.h.
Referenced by ConfigSession(), getRetainSession(), and setRetainSession().
|
private |
Definition at line 156 of file ConfigSections.h.
Referenced by getUsername(), and settUsername().
|
private |
Definition at line 153 of file ConfigSections.h.
Referenced by getWillMessage(), and setWillMessage().
|
private |
Definition at line 154 of file ConfigSections.h.
Referenced by getWillQoS(), and settWillQoS().
|
private |
Definition at line 155 of file ConfigSections.h.
Referenced by getWillRetain(), and setWillRetain().
|
private |
Definition at line 152 of file ConfigSections.h.
Referenced by getWillTopic(), and setWillTopic().