PIVX Core  5.6.99
P2P Digital Currency
Public Member Functions | List of all members
TestArgsManager Struct Reference
Inheritance diagram for TestArgsManager:
[legend]
Collaboration diagram for TestArgsManager:
[legend]

Public Member Functions

 TestArgsManager ()
 
std::map< std::string, std::vector< std::string > > & GetOverrideArgs ()
 
std::map< std::string, std::vector< std::string > > & GetConfigArgs ()
 
void ReadConfigString (const std::string str_config)
 
void SetNetworkOnlyArg (const std::string arg)
 
- Public Member Functions inherited from ArgsManager
 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...
 

Additional Inherited Members

- Protected Member Functions inherited from ArgsManager
void ReadConfigStream (std::istream &stream)
 
- Protected Attributes inherited from ArgsManager
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
 

Detailed Description

Definition at line 129 of file util_tests.cpp.

Constructor & Destructor Documentation

◆ TestArgsManager()

TestArgsManager::TestArgsManager ( )
inline

Definition at line 131 of file util_tests.cpp.

Member Function Documentation

◆ GetConfigArgs()

std::map<std::string, std::vector<std::string> >& TestArgsManager::GetConfigArgs ( )
inline

Definition at line 133 of file util_tests.cpp.

Here is the caller graph for this function:

◆ GetOverrideArgs()

std::map<std::string, std::vector<std::string> >& TestArgsManager::GetOverrideArgs ( )
inline

Definition at line 132 of file util_tests.cpp.

Here is the caller graph for this function:

◆ ReadConfigString()

void TestArgsManager::ReadConfigString ( const std::string  str_config)
inline

Definition at line 134 of file util_tests.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetNetworkOnlyArg()

void TestArgsManager::SetNetworkOnlyArg ( const std::string  arg)
inline

Definition at line 143 of file util_tests.cpp.

Here is the caller graph for this function:

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