![]()  | 
  
    BSHA3
    0.17.99
    
   P2P Blockchain, based on Bitcoin 
   | 
 
#include <util.h>
Classes | |
| struct | Arg | 
Public Member Functions | |
| ArgsManager () | |
| void | SelectConfigNetwork (const std::string &network) | 
| Select the network in use.  More... | |
| bool | ParseParameters (int argc, const char *const argv[], std::string &error) | 
| bool | ReadConfigFiles (std::string &error, bool ignore_invalid_keys=false) | 
| 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... | |
| void | AddArg (const std::string &name, const std::string &help, const bool debug_only, const OptionsCategory &cat) | 
| Add argument.  More... | |
| void | AddHiddenArgs (const std::vector< std::string > &args) | 
| Add many hidden arguments.  More... | |
| void | ClearArgs () | 
| Clear available arguments.  More... | |
| std::string | GetHelpMessage () const | 
| Get the help string.  More... | |
| bool | IsArgKnown (const std::string &key) const | 
| Check whether we know of this arg.  More... | |
Protected Member Functions | |
| std::map< std::string, std::vector< std::string > > m_override_args | GUARDED_BY (cs_args) | 
| std::map< std::string, std::vector< std::string > > m_config_args | GUARDED_BY (cs_args) | 
| std::string m_network | GUARDED_BY (cs_args) | 
| std::set< std::string > m_network_only_args | GUARDED_BY (cs_args) | 
| std::map< OptionsCategory, std::map< std::string, Arg > > m_available_args | GUARDED_BY (cs_args) | 
| bool | ReadConfigStream (std::istream &stream, std::string &error, bool ignore_invalid_keys=false) | 
Protected Attributes | |
| CCriticalSection | cs_args | 
Friends | |
| class | ArgsManagerHelper | 
| void ArgsManager::AddArg | ( | const std::string & | name, | 
| const std::string & | help, | ||
| const bool | debug_only, | ||
| const OptionsCategory & | cat | ||
| ) | 
| void ArgsManager::AddHiddenArgs | ( | const std::vector< std::string > & | args | ) | 
      
  | 
  inline | 
| void ArgsManager::ForceSetArg | ( | const std::string & | strArg, | 
| const std::string & | strValue | ||
| ) | 
| std::string ArgsManager::GetArg | ( | const std::string & | strArg, | 
| const std::string & | strDefault | ||
| ) | const | 
| int64_t ArgsManager::GetArg | ( | const std::string & | strArg, | 
| int64_t | nDefault | ||
| ) | const | 
| std::vector< std::string > ArgsManager::GetArgs | ( | const std::string & | strArg | ) | const | 
| bool ArgsManager::GetBoolArg | ( | const std::string & | strArg, | 
| bool | fDefault | ||
| ) | const | 
| std::string ArgsManager::GetChainName | ( | ) | const | 
Looks for -regtest, -testnet and returns the appropriate BIP70 chain name.
Definition at line 967 of file util.cpp.
| std::string ArgsManager::GetHelpMessage | ( | ) | const | 
      
  | 
  protected | 
      
  | 
  protected | 
      
  | 
  protected | 
      
  | 
  protected | 
      
  | 
  protected | 
| bool ArgsManager::IsArgKnown | ( | const std::string & | key | ) | const | 
| 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 508 of file util.cpp.
| bool ArgsManager::IsArgSet | ( | const std::string & | strArg | ) | const | 
| bool ArgsManager::ParseParameters | ( | int | argc, | 
| const char *const | argv[], | ||
| std::string & | error | ||
| ) | 
| bool ArgsManager::ReadConfigFiles | ( | std::string & | error, | 
| bool | ignore_invalid_keys = false  | 
        ||
| ) | 
      
  | 
  protected | 
| void ArgsManager::SelectConfigNetwork | ( | const std::string & | network | ) | 
| 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 550 of file util.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 558 of file util.cpp.
| void ArgsManager::WarnForSectionOnlyArgs | ( | ) | 
      
  | 
  friend | 
      
  | 
  mutableprotected | 
 1.8.14