|
SNode.C
|
#include <ConfigPhysicalSocketClient.h>
Public Types | |
| using | Socket = ConfigPhysicalSocketClient |
Protected Member Functions | |
| ConfigPhysicalSocketClient (ConfigInstance *instance) | |
Protected Member Functions inherited from net::config::ConfigPhysicalSocket | |
| ConfigPhysicalSocket (ConfigInstance *instance) | |
| CLI::Option * | addSocketOption (const std::string &name, int optLevel, int optName, const std::string &description, const std::string &typeName, const std::string &defaultValue, const CLI::Validator &validator) |
Protected Member Functions inherited from net::config::ConfigSection | |
| ConfigSection (ConfigInstance *instance, const std::string &name, const std::string &description) | |
| ConfigSection (const ConfigSection &)=delete | |
| ConfigSection (ConfigSection &&)=delete | |
| ConfigSection & | operator= (const ConfigSection &)=delete |
| ConfigSection & | operator= (ConfigSection &&)=delete |
| CLI::Option * | addOption (const std::string &name, const std::string &description) |
| CLI::Option * | addOption (const std::string &name, const std::string &description, const std::string &typeName) |
| CLI::Option * | addOption (const std::string &name, const std::string &description, const std::string &typeName, const CLI::Validator &additionalValidator) |
| template<typename ValueTypeT > | |
| CLI::Option * | addOption (const std::string &name, const std::string &description, const std::string &typeName, ValueTypeT defaultValue) |
| template<typename ValueTypeT > | |
| CLI::Option * | addOption (const std::string &name, const std::string &description, const std::string &typeName, ValueTypeT defaultValue, const CLI::Validator &additionalValidator) |
| CLI::Option * | addFlag (const std::string &name, const std::string &description, const std::string &typeName) |
| CLI::Option * | addFlag (const std::string &name, const std::string &description, const std::string &typeName, const CLI::Validator &additionalValidator) |
| template<typename ValueTypeT > | |
| CLI::Option * | addFlag (const std::string &name, const std::string &description, const std::string &typeName, ValueTypeT defaultValue) |
| template<typename ValueTypeT > | |
| CLI::Option * | addFlag (const std::string &name, const std::string &description, const std::string &typeName, ValueTypeT defaultValue, const CLI::Validator &additionalValidator) |
| CLI::Option * | addFlagFunction (const std::string &name, const std::function< void()> &callback, const std::string &description, const std::string &typeName, const std::string &defaultValue) |
| CLI::Option * | addFlagFunction (const std::string &name, const std::function< void()> &callback, const std::string &description, const std::string &typeName, const std::string &defaultValue, const CLI::Validator &validator) |
| void | required (CLI::Option *opt, bool req=true) |
| bool | required () const |
| template<typename ValueType > | |
| CLI::Option * | addOption (const std::string &name, const std::string &description, const std::string &typeName, ValueType defaultValue) |
| template<typename ValueType > | |
| CLI::Option * | addOption (const std::string &name, const std::string &description, const std::string &typeName, ValueType defaultValue, const CLI::Validator &additionalValidator) |
| template<typename ValueType > | |
| CLI::Option * | addFlag (const std::string &name, const std::string &description, const std::string &typeName, ValueType defaultValue) |
| template<typename ValueType > | |
| CLI::Option * | addFlag (const std::string &name, const std::string &description, const std::string &typeName, ValueType defaultValue, const CLI::Validator &additionalValidator) |
Private Types | |
| using | Super = ConfigPhysicalSocket |
Private Attributes | |
| CLI::Option * | reconnectOpt = nullptr |
| CLI::Option * | reconnectTimeOpt = nullptr |
| CLI::Option * | connectTimeoutOpt = nullptr |
Additional Inherited Members | |
Protected Attributes inherited from net::config::ConfigSection | |
| CLI::App * | section = nullptr |
Definition at line 62 of file ConfigPhysicalSocketClient.h.
Definition at line 67 of file ConfigPhysicalSocketClient.h.
|
private |
Definition at line 64 of file ConfigPhysicalSocketClient.h.
|
explicitprotected |
Definition at line 59 of file ConfigPhysicalSocketClient.cpp.
References net::config::ConfigSection::addFlagFunction(), net::config::ConfigPhysicalSocket::ConfigPhysicalSocket(), reconnectOpt, and reconnectTimeOpt.
| utils::Timeval net::config::ConfigPhysicalSocketClient::getConnectTimeout | ( | ) | const |
Definition at line 127 of file ConfigPhysicalSocketClient.cpp.
References connectTimeoutOpt, and utils::Timeval::Timeval().
| bool net::config::ConfigPhysicalSocketClient::getReconnect | ( | ) | const |
Definition at line 103 of file ConfigPhysicalSocketClient.cpp.
References reconnectOpt.
| double net::config::ConfigPhysicalSocketClient::getReconnectTime | ( | ) | const |
Definition at line 115 of file ConfigPhysicalSocketClient.cpp.
References reconnectTimeOpt.
| ConfigPhysicalSocketClient & net::config::ConfigPhysicalSocketClient::setConnectTimeout | ( | const utils::Timeval & | connectTimeout | ) |
Definition at line 119 of file ConfigPhysicalSocketClient.cpp.
References connectTimeoutOpt.
| ConfigPhysicalSocketClient & net::config::ConfigPhysicalSocketClient::setReconnect | ( | bool | reconnect = true | ) |
Definition at line 89 of file ConfigPhysicalSocketClient.cpp.
References reconnectOpt, and reconnectTimeOpt.
| ConfigPhysicalSocketClient & net::config::ConfigPhysicalSocketClient::setReconnectTime | ( | double | time | ) |
Definition at line 107 of file ConfigPhysicalSocketClient.cpp.
References reconnectTimeOpt.
|
private |
Definition at line 86 of file ConfigPhysicalSocketClient.h.
Referenced by getConnectTimeout(), and setConnectTimeout().
|
private |
Definition at line 83 of file ConfigPhysicalSocketClient.h.
Referenced by ConfigPhysicalSocketClient(), getReconnect(), and setReconnect().
|
private |
Definition at line 84 of file ConfigPhysicalSocketClient.h.
Referenced by ConfigPhysicalSocketClient(), getReconnectTime(), setReconnect(), and setReconnectTime().