Bitcoin Core  0.15.99
P2P Digital Currency
Public Types | Static Public Member Functions | List of all members
ArgsManagerHelper Class Reference

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) EXCLUSIVE_LOCKS_REQUIRED(am.cs_args)
 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) EXCLUSIVE_LOCKS_REQUIRED(am.cs_args)
 

Detailed Description

Internal helper functions for ArgsManager.

Definition at line 215 of file util.cpp.

Member Typedef Documentation

◆ MapArgs

typedef std::map<std::string, std::vector<std::string> > ArgsManagerHelper::MapArgs

Definition at line 217 of file util.cpp.

Member Function Documentation

◆ AddArgs()

static void ArgsManagerHelper::AddArgs ( std::vector< std::string > &  res,
const MapArgs map_args,
const std::string &  arg 
)
inlinestatic

Find arguments in a map and add them to a vector.

Definition at line 234 of file util.cpp.

Here is the caller graph for this function:

◆ GetArg()

static std::pair<bool,std::string> ArgsManagerHelper::GetArg ( const ArgsManager am,
const std::string &  arg 
)
inlinestatic

Definition at line 264 of file util.cpp.

Here is the caller graph for this function:

◆ GetArgHelper()

static std::pair<bool,std::string> ArgsManagerHelper::GetArgHelper ( const MapArgs map_args,
const std::string &  arg,
bool  getLast = false 
)
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 245 of file util.cpp.

Here is the caller graph for this function:

◆ GetNetBoolArg()

static bool ArgsManagerHelper::GetNetBoolArg ( const ArgsManager am,
const std::string &  net_arg 
)
inlinestatic

Definition at line 300 of file util.cpp.

Here is the caller graph for this function:

◆ NetworkArg()

static std::string ArgsManagerHelper::NetworkArg ( const ArgsManager am,
const std::string &  arg 
)
inlinestatic

Convert regular argument into the network-specific setting.

Definition at line 227 of file util.cpp.

Here is the caller graph for this function:

◆ UseDefaultSection()

static bool ArgsManagerHelper::UseDefaultSection ( const ArgsManager am,
const std::string &  arg 
)
inlinestatic

Determine whether to use config settings in the default section, See also comments around ArgsManager::ArgsManager() below.

Definition at line 221 of file util.cpp.

Here is the caller graph for this function:

The documentation for this class was generated from the following file: