SNode.C
|
#include <ConfigPhysicalSocket.h>
Public Member Functions | |
const std::map< int, std::map< int, const net::phy::PhysicalSocketOption > > & | getSocketOptions () |
ConfigPhysicalSocket & | addSocketOption (int optLevel, int optName, int optValue) |
ConfigPhysicalSocket & | addSocketOption (int optLevel, int optName, const std::string &optValue) |
ConfigPhysicalSocket & | addSocketOption (int optLevel, int optName, const std::vector< char > &optValue) |
ConfigPhysicalSocket & | removeSocketOption (int optLevel, int optName) |
ConfigPhysicalSocket & | setRetry (bool retry=true) |
bool | getRetry () const |
ConfigPhysicalSocket & | setRetryOnFatal (bool retry=true) |
bool | getRetryOnFatal () const |
ConfigPhysicalSocket & | setRetryTimeout (double sec) |
double | getRetryTimeout () const |
ConfigPhysicalSocket & | setRetryTries (unsigned int tries=0) |
unsigned int | getRetryTries () const |
ConfigPhysicalSocket & | setRetryBase (double base) |
double | getRetryBase () const |
ConfigPhysicalSocket & | setRetryLimit (unsigned int limit) |
unsigned int | getRetryLimit () const |
ConfigPhysicalSocket & | setRetryJitter (double percent) |
double | getRetryJitter () const |
Protected Member Functions | |
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) |
![]() | |
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 Attributes | |
CLI::Option * | retryOpt = nullptr |
CLI::Option * | retryOnFatalOpt = nullptr |
CLI::Option * | retryTriesOpt = nullptr |
CLI::Option * | retryTimeoutOpt = nullptr |
CLI::Option * | retryBaseOpt = nullptr |
CLI::Option * | retryLimitOpt = nullptr |
CLI::Option * | retryJitterOpt = nullptr |
std::map< int, std::map< int, const net::phy::PhysicalSocketOption > > | socketOptionsMapMap |
Additional Inherited Members | |
![]() | |
CLI::App * | section = nullptr |
Definition at line 66 of file ConfigPhysicalSocket.h.
|
explicitprotected |
Definition at line 59 of file ConfigPhysicalSocket.cpp.
|
protected |
Definition at line 126 of file ConfigPhysicalSocket.cpp.
ConfigPhysicalSocket & net::config::ConfigPhysicalSocket::addSocketOption | ( | int | optLevel, |
int | optName, | ||
const std::string & | optValue ) |
Definition at line 168 of file ConfigPhysicalSocket.cpp.
ConfigPhysicalSocket & net::config::ConfigPhysicalSocket::addSocketOption | ( | int | optLevel, |
int | optName, | ||
const std::vector< char > & | optValue ) |
Definition at line 174 of file ConfigPhysicalSocket.cpp.
ConfigPhysicalSocket & net::config::ConfigPhysicalSocket::addSocketOption | ( | int | optLevel, |
int | optName, | ||
int | optValue ) |
Definition at line 162 of file ConfigPhysicalSocket.cpp.
bool net::config::ConfigPhysicalSocket::getRetry | ( | ) | const |
Definition at line 213 of file ConfigPhysicalSocket.cpp.
double net::config::ConfigPhysicalSocket::getRetryBase | ( | ) | const |
Definition at line 261 of file ConfigPhysicalSocket.cpp.
double net::config::ConfigPhysicalSocket::getRetryJitter | ( | ) | const |
Definition at line 285 of file ConfigPhysicalSocket.cpp.
unsigned int net::config::ConfigPhysicalSocket::getRetryLimit | ( | ) | const |
Definition at line 273 of file ConfigPhysicalSocket.cpp.
bool net::config::ConfigPhysicalSocket::getRetryOnFatal | ( | ) | const |
Definition at line 225 of file ConfigPhysicalSocket.cpp.
double net::config::ConfigPhysicalSocket::getRetryTimeout | ( | ) | const |
Definition at line 237 of file ConfigPhysicalSocket.cpp.
unsigned int net::config::ConfigPhysicalSocket::getRetryTries | ( | ) | const |
Definition at line 249 of file ConfigPhysicalSocket.cpp.
const std::map< int, std::map< int, const net::phy::PhysicalSocketOption > > & net::config::ConfigPhysicalSocket::getSocketOptions | ( | ) |
Definition at line 122 of file ConfigPhysicalSocket.cpp.
ConfigPhysicalSocket & net::config::ConfigPhysicalSocket::removeSocketOption | ( | int | optLevel, |
int | optName ) |
Definition at line 180 of file ConfigPhysicalSocket.cpp.
ConfigPhysicalSocket & net::config::ConfigPhysicalSocket::setRetry | ( | bool | retry = true | ) |
Definition at line 189 of file ConfigPhysicalSocket.cpp.
ConfigPhysicalSocket & net::config::ConfigPhysicalSocket::setRetryBase | ( | double | base | ) |
Definition at line 253 of file ConfigPhysicalSocket.cpp.
ConfigPhysicalSocket & net::config::ConfigPhysicalSocket::setRetryJitter | ( | double | percent | ) |
Definition at line 277 of file ConfigPhysicalSocket.cpp.
ConfigPhysicalSocket & net::config::ConfigPhysicalSocket::setRetryLimit | ( | unsigned int | limit | ) |
Definition at line 265 of file ConfigPhysicalSocket.cpp.
ConfigPhysicalSocket & net::config::ConfigPhysicalSocket::setRetryOnFatal | ( | bool | retry = true | ) |
Definition at line 217 of file ConfigPhysicalSocket.cpp.
ConfigPhysicalSocket & net::config::ConfigPhysicalSocket::setRetryTimeout | ( | double | sec | ) |
Definition at line 229 of file ConfigPhysicalSocket.cpp.
ConfigPhysicalSocket & net::config::ConfigPhysicalSocket::setRetryTries | ( | unsigned int | tries = 0 | ) |
Definition at line 241 of file ConfigPhysicalSocket.cpp.
|
private |
Definition at line 114 of file ConfigPhysicalSocket.h.
|
private |
Definition at line 116 of file ConfigPhysicalSocket.h.
|
private |
Definition at line 115 of file ConfigPhysicalSocket.h.
|
private |
Definition at line 111 of file ConfigPhysicalSocket.h.
|
private |
Definition at line 110 of file ConfigPhysicalSocket.h.
|
private |
Definition at line 113 of file ConfigPhysicalSocket.h.
|
private |
Definition at line 112 of file ConfigPhysicalSocket.h.
|
private |
Definition at line 118 of file ConfigPhysicalSocket.h.