SNode.C
|
#include <ConfigSection.h>
Public Member Functions | |
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) |
Protected Attributes | |
CLI::App * | section = nullptr |
Private Attributes | |
ConfigInstance * | instance = nullptr |
uint8_t | requiredCount = 0 |
Definition at line 43 of file ConfigSection.h.
net::config::ConfigSection::ConfigSection | ( | ConfigInstance * | instance, |
const std::string & | name, | ||
const std::string & | description ) |
Definition at line 50 of file ConfigSection.cpp.
|
delete |
|
delete |
CLI::Option * net::config::ConfigSection::addFlag | ( | const std::string & | name, |
const std::string & | description, | ||
const std::string & | typeName ) |
Definition at line 109 of file ConfigSection.cpp.
CLI::Option * net::config::ConfigSection::addFlag | ( | const std::string & | name, |
const std::string & | description, | ||
const std::string & | typeName, | ||
const CLI::Validator & | additionalValidator ) |
Definition at line 122 of file ConfigSection.cpp.
CLI::Option * net::config::ConfigSection::addFlag | ( | const std::string & | name, |
const std::string & | description, | ||
const std::string & | typeName, | ||
ValueType | defaultValue ) |
Definition at line 64 of file ConfigSection.hpp.
CLI::Option * net::config::ConfigSection::addFlag | ( | const std::string & | name, |
const std::string & | description, | ||
const std::string & | typeName, | ||
ValueType | defaultValue, | ||
const CLI::Validator & | additionalValidator ) |
Definition at line 70 of file ConfigSection.hpp.
CLI::Option * net::config::ConfigSection::addFlag | ( | const std::string & | name, |
const std::string & | description, | ||
const std::string & | typeName, | ||
ValueTypeT | defaultValue ) |
CLI::Option * net::config::ConfigSection::addFlag | ( | const std::string & | name, |
const std::string & | description, | ||
const std::string & | typeName, | ||
ValueTypeT | defaultValue, | ||
const CLI::Validator & | additionalValidator ) |
CLI::Option * net::config::ConfigSection::addFlagFunction | ( | const std::string & | name, |
const std::function< void()> & | callback, | ||
const std::string & | description, | ||
const std::string & | typeName, | ||
const std::string & | defaultValue ) |
Definition at line 130 of file ConfigSection.cpp.
CLI::Option * net::config::ConfigSection::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 ) |
Definition at line 148 of file ConfigSection.cpp.
CLI::Option * net::config::ConfigSection::addOption | ( | const std::string & | name, |
const std::string & | description ) |
Definition at line 81 of file ConfigSection.cpp.
CLI::Option * net::config::ConfigSection::addOption | ( | const std::string & | name, |
const std::string & | description, | ||
const std::string & | typeName ) |
Definition at line 96 of file ConfigSection.cpp.
CLI::Option * net::config::ConfigSection::addOption | ( | const std::string & | name, |
const std::string & | description, | ||
const std::string & | typeName, | ||
const CLI::Validator & | additionalValidator ) |
Definition at line 101 of file ConfigSection.cpp.
CLI::Option * net::config::ConfigSection::addOption | ( | const std::string & | name, |
const std::string & | description, | ||
const std::string & | typeName, | ||
ValueType | defaultValue ) |
Definition at line 47 of file ConfigSection.hpp.
CLI::Option * net::config::ConfigSection::addOption | ( | const std::string & | name, |
const std::string & | description, | ||
const std::string & | typeName, | ||
ValueType | defaultValue, | ||
const CLI::Validator & | additionalValidator ) |
Definition at line 53 of file ConfigSection.hpp.
CLI::Option * net::config::ConfigSection::addOption | ( | const std::string & | name, |
const std::string & | description, | ||
const std::string & | typeName, | ||
ValueTypeT | defaultValue ) |
CLI::Option * net::config::ConfigSection::addOption | ( | const std::string & | name, |
const std::string & | description, | ||
const std::string & | typeName, | ||
ValueTypeT | defaultValue, | ||
const CLI::Validator & | additionalValidator ) |
|
delete |
|
delete |
bool net::config::ConfigSection::required | ( | ) | const |
Definition at line 77 of file ConfigSection.cpp.
void net::config::ConfigSection::required | ( | CLI::Option * | opt, |
bool | req = true ) |
Definition at line 60 of file ConfigSection.cpp.
|
private |
Definition at line 111 of file ConfigSection.h.
|
private |
Definition at line 113 of file ConfigSection.h.
|
protected |
Definition at line 108 of file ConfigSection.h.