Bitcoin Core  0.19.99
P2P Digital Currency
Classes | Namespaces | Typedefs | Functions
settings.h File Reference
#include <map>
#include <string>
#include <vector>
Include dependency graph for settings.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  util::Settings
 Stored bitcoin settings. More...
 
struct  util::SettingsSpan
 Accessor for list of settings that skips negated values when iterated over. More...
 

Namespaces

 util
 

Typedefs

using util::SettingsValue = UniValue
 Settings value type (string/integer/boolean/null variant). More...
 

Functions

SettingsValue util::GetSetting (const Settings &settings, const std::string &section, const std::string &name, bool ignore_default_section_config, bool get_chain_name)
 Get settings value from combined sources: forced settings, command line arguments and the read-only config file. More...
 
std::vector< SettingsValue > util::GetSettingsList (const Settings &settings, const std::string &section, const std::string &name, bool ignore_default_section_config)
 Get combined setting value similar to GetSetting(), except if setting was specified multiple times, return a list of all the values specified. More...
 
bool util::OnlyHasDefaultSectionSetting (const Settings &settings, const std::string &section, const std::string &name)
 Return true if a setting is set in the default config file section, and not overridden by a higher priority command-line or network section value. More...
 
template<typename Map , typename Key >
auto util::FindKey (Map &&map, Key &&key) -> decltype(&map.at(key))
 Map lookup helper. More...