![]() |
PIVX Core
5.6.99
P2P Digital Currency
|
#include <system.h>
Public Member Functions | |
| ArgsManager () | |
| void | SelectConfigNetwork (const std::string &network) |
| Select the network in use. More... | |
| void | ParseParameters (int argc, const char *const argv[]) |
| void | ReadConfigFile (const std::string &confPath) |
| void | WarnForSectionOnlyArgs () |
| Log warnings for options in m_section_only_args when they are specified in the default section but not overridden on the command line or in a network-specific section in the config file. More... | |
| std::vector< std::string > | GetArgs (const std::string &strArg) const |
| Return a vector of strings of the given argument. More... | |
| bool | IsArgSet (const std::string &strArg) const |
| Return true if the given argument has been manually set. More... | |
| bool | IsArgNegated (const std::string &strArg) const |
| Return true if the argument was originally passed as a negated option, i.e. More... | |
| std::string | GetArg (const std::string &strArg, const std::string &strDefault) const |
| Return string argument or default value. More... | |
| int64_t | GetArg (const std::string &strArg, int64_t nDefault) const |
| Return integer argument or default value. More... | |
| bool | GetBoolArg (const std::string &strArg, bool fDefault) const |
| Return boolean argument or default value. More... | |
| bool | SoftSetArg (const std::string &strArg, const std::string &strValue) |
| Set an argument if it doesn't already have a value. More... | |
| bool | SoftSetBoolArg (const std::string &strArg, bool fValue) |
| Set a boolean argument if it doesn't already have a value. More... | |
| void | ForceSetArg (const std::string &strArg, const std::string &strValue) |
| std::string | GetChainName () const |
| Looks for -regtest, -testnet and returns the appropriate BIP70 chain name. More... | |
Protected Member Functions | |
| void | ReadConfigStream (std::istream &stream) |
Protected Attributes | |
| RecursiveMutex | cs_args |
| std::map< std::string, std::vector< std::string > > | m_override_args |
| std::map< std::string, std::vector< std::string > > | m_config_args |
| std::string | m_network |
| std::set< std::string > | m_network_only_args |
Friends | |
| class | ArgsManagerHelper |
| ArgsManager::ArgsManager | ( | ) |
Definition at line 322 of file system.cpp.
| void ArgsManager::ForceSetArg | ( | const std::string & | strArg, |
| const std::string & | strValue | ||
| ) |
| std::string ArgsManager::GetArg | ( | const std::string & | strArg, |
| const std::string & | strDefault | ||
| ) | const |
Return string argument or default value.
| strArg | Argument to get (e.g. "-foo") |
| default | (e.g. "1") |
Definition at line 449 of file system.cpp.
| int64_t ArgsManager::GetArg | ( | const std::string & | strArg, |
| int64_t | nDefault | ||
| ) | const |
Return integer argument or default value.
| strArg | Argument to get (e.g. "-foo") |
| default | (e.g. 1) |
Definition at line 457 of file system.cpp.
| std::vector< std::string > ArgsManager::GetArgs | ( | const std::string & | strArg | ) | const |
Return a vector of strings of the given argument.
| strArg | Argument to get (e.g. "-foo") |
Definition at line 406 of file system.cpp.
| bool ArgsManager::GetBoolArg | ( | const std::string & | strArg, |
| bool | fDefault | ||
| ) | const |
Return boolean argument or default value.
| strArg | Argument to get (e.g. "-foo") |
| default | (true or false) |
Definition at line 465 of file system.cpp.
| std::string ArgsManager::GetChainName | ( | ) | const |
Looks for -regtest, -testnet and returns the appropriate BIP70 chain name.
Definition at line 861 of file system.cpp.
| bool ArgsManager::IsArgNegated | ( | const std::string & | strArg | ) | const |
Return true if the argument was originally passed as a negated option, i.e.
-nofoo.
| strArg | Argument to get (e.g. "-foo") |
Definition at line 431 of file system.cpp.
| bool ArgsManager::IsArgSet | ( | const std::string & | strArg | ) | const |
Return true if the given argument has been manually set.
| strArg | Argument to get (e.g. "-foo") |
Definition at line 425 of file system.cpp.
| void ArgsManager::ParseParameters | ( | int | argc, |
| const char *const | argv[] | ||
| ) |
| void ArgsManager::ReadConfigFile | ( | const std::string & | confPath | ) |
Definition at line 832 of file system.cpp.
|
protected |
| void ArgsManager::SelectConfigNetwork | ( | const std::string & | network | ) |
Select the network in use.
Definition at line 366 of file system.cpp.
| bool ArgsManager::SoftSetArg | ( | const std::string & | strArg, |
| const std::string & | strValue | ||
| ) |
Set an argument if it doesn't already have a value.
| strArg | Argument to set (e.g. "-foo") |
| strValue | Value (e.g. "1") |
Definition at line 473 of file system.cpp.
| bool ArgsManager::SoftSetBoolArg | ( | const std::string & | strArg, |
| bool | fValue | ||
| ) |
Set a boolean argument if it doesn't already have a value.
| strArg | Argument to set (e.g. "-foo") |
| fValue | Value (e.g. false) |
Definition at line 481 of file system.cpp.
| void ArgsManager::WarnForSectionOnlyArgs | ( | ) |
Log warnings for options in m_section_only_args when they are specified in the default section but not overridden on the command line or in a network-specific section in the config file.
Definition at line 338 of file system.cpp.
|
friend |
|
mutableprotected |
|
protected |
|
protected |
|
protected |