|
| Config (const fs::path &config_path, std::list< Tier > &tiers, const ConfigOverrides &config_overrides) |
|
| Config (const fs::path &config_path, const ConfigOverrides &config_overrides) |
|
size_t | copy_buff_sz (void) const |
|
std::chrono::seconds | tier_period_s (void) const |
|
bool | strict_period (void) const |
|
fs::path | run_path (void) const |
|
void | dump (const std::list< Tier > &tiers, std::stringstream &ss) const |
|
| ConfigParser (std::string path) |
| Construct a new Config Parser object. More...
|
|
std::string | dump_str (void) const |
| Dump config to stdout as a string. More...
|
|
template<class T > |
T | get (const std::string &key) const |
| Get value from config map using ffd::get(). This can throw. Use this in a try...catch block. More...
|
|
template<class T > |
T | get (const std::string &key, const T &fallback) const noexcept |
| Try to get value from config, default to fallback if fails. Guaranteed no-throw. More...
|
|
template<class T > |
T | get (const std::string &key, bool *fail_flag) const noexcept |
| Try to get value from config. If ffd::get fails, return T() or 0 and set fail_flag. Guaranteed no-throw. Prints message to std::cerr to explain error. More...
|
|
template<class T > |
T | get_from (const std::string §ion, const std::string &key) |
| Adapter for ffd::get(). Sets config_map_ptr_ to address of sub config with name section. This can throw. More...
|
|
template<class T > |
T | get_from (const std::string §ion, const std::string &key, const T &fallback) noexcept |
| Get value from config subsection using ConfigParser::get(const std::string&,const T&) const noexcept, return fallback if the subsection DNE. More...
|
|
template<class T > |
T | get_from (const std::string §ion, const std::string &key, bool *fail_flag) noexcept |
| Get value from config subsection using ConfigParser::get(const std::string&,bool*) const noexcept, set fail_flag if the subsection DNE. More...
|
|
Quota | get_quota (const std::string &key, const Bytes &max) const |
| Get quota from config map using ffd::get(). This can throw. Use this in a try...catch block. More...
|
|
Quota | get_quota (const std::string &key, const Bytes &max, const Quota &fallback) const noexcept |
| Try to get Quota from config, default to fallback if fails. Guaranteed no-throw. More...
|
|
Quota | get_quota (const std::string &key, const Bytes &max, bool *fail_flag) const noexcept |
| Try to get Quota from config. If ffd::get fails, return Quota(void) and set fail_flag. Guaranteed no-throw. Prints message to std::cerr to explain error. More...
|
|
Quota | get_quota_from (const std::string §ion, const std::string &key, const Bytes &max) |
| Adapter for ffd::get(). Sets config_map_ptr_ to address of sub config with name section. This can throw. More...
|
|
Quota | get_quota_from (const std::string §ion, const std::string &key, const Bytes &max, const Quota &fallback) noexcept |
| Get value from config subsection using ConfigParser::get(const std::string&,const T&) const noexcept, return fallback if the subsection DNE. More...
|
|
Quota | get_quota_from (const std::string §ion, const std::string &key, const Bytes &max, bool *fail_flag) noexcept |
| Get value from config subsection using ConfigParser::get(const std::string&,bool*) const noexcept, set fail_flag if the subsection DNE. More...
|
|