Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
Internal helper functions for ArgsManager. More...
Public Types | |
typedef std::map< std::string, std::vector< std::string > > | MapArgs |
Static Public Member Functions | |
static bool | UseDefaultSection (const ArgsManager &am, const std::string &arg) |
Determine whether to use config settings in the default section, See also comments around ArgsManager::ArgsManager() below. More... | |
static std::string | NetworkArg (const ArgsManager &am, const std::string &arg) |
Convert regular argument into the network-specific setting. More... | |
static void | AddArgs (std::vector< std::string > &res, const MapArgs &map_args, const std::string &arg) |
Find arguments in a map and add them to a vector. More... | |
static std::pair< bool, std::string > | GetArgHelper (const MapArgs &map_args, const std::string &arg, bool getLast=false) |
Return true/false if an argument is set in a map, and also return the first (or last) of the possibly multiple values it has. More... | |
static std::pair< bool, std::string > | GetArg (const ArgsManager &am, const std::string &arg) |
static bool | GetNetBoolArg (const ArgsManager &am, const std::string &net_arg, bool interpret_bool) |
Detailed Description
Internal helper functions for ArgsManager.
Member Typedef Documentation
◆ MapArgs
typedef std::map<std::string, std::vector<std::string> > ArgsManagerHelper::MapArgs |
Member Function Documentation
◆ AddArgs()
|
inlinestatic |
Find arguments in a map and add them to a vector.
Definition at line 556 of file util.cpp.
Referenced by ArgsManager::GetArgs().
◆ GetArg()
|
inlinestatic |
Definition at line 586 of file util.cpp.
References ArgsManager::cs_args, GetArgHelper(), LOCK, ArgsManager::m_config_args, ArgsManager::m_network, ArgsManager::m_override_args, NetworkArg(), and UseDefaultSection().
Referenced by ArgsManager::GetArg(), ArgsManager::GetBoolArg(), and ArgsManager::IsArgSet().
◆ GetArgHelper()
|
inlinestatic |
Return true/false if an argument is set in a map, and also return the first (or last) of the possibly multiple values it has.
Definition at line 567 of file util.cpp.
Referenced by GetArg(), GetNetBoolArg(), and ArgsManager::WarnForSectionOnlyArgs().
◆ GetNetBoolArg()
|
inlinestatic |
Definition at line 622 of file util.cpp.
References GetArgHelper(), InterpretBool(), ArgsManager::m_config_args, and ArgsManager::m_override_args.
Referenced by ArgsManager::GetChainName().
◆ NetworkArg()
|
inlinestatic |
Convert regular argument into the network-specific setting.
Definition at line 549 of file util.cpp.
References ArgsManager::m_network.
Referenced by ArgsManager::ForceRemoveArg(), GetArg(), ArgsManager::GetArgs(), ArgsManager::IsArgNegated(), and ArgsManager::WarnForSectionOnlyArgs().
◆ UseDefaultSection()
|
inlinestatic |
Determine whether to use config settings in the default section, See also comments around ArgsManager::ArgsManager() below.
Definition at line 543 of file util.cpp.
References ArgsManager::m_network, ArgsManager::m_network_only_args, and CBaseChainParams::MAIN.
Referenced by GetArg(), and ArgsManager::GetArgs().
The documentation for this class was generated from the following file:
- src/util.cpp