MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / GetBoolArg

Method GetBoolArg

src/util.cpp:544–550  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

542}
543
544bool ArgsManager::GetBoolArg(const std::string& strArg, bool fDefault) const
545{
546 if (IsArgNegated(strArg)) return false;
547 std::pair<bool,std::string> found_res = ArgsManagerHelper::GetArg(*this, strArg);
548 if (found_res.first) return InterpretBool(found_res.second);
549 return fDefault;
550}
551
552bool ArgsManager::SoftSetArg(const std::string& strArg, const std::string& strValue)
553{

Callers 15

InitHTTPServerFunction · 0.80
AppInitRawTxFunction · 0.80
OutputTxFunction · 0.80
AddToBlockMethod · 0.80
AppInitRPCFunction · 0.80
PrepareRequestMethod · 0.80
CommandLineRPCFunction · 0.80
ProcessMessageFunction · 0.80
SendMessagesMethod · 0.80
ThreadImportFunction · 0.80
AppInitServersFunction · 0.80
InitParameterInteractionFunction · 0.80

Calls 1

InterpretBoolFunction · 0.85

Tested by 2

BOOST_AUTO_TEST_CASEFunction · 0.64
BOOST_AUTO_TEST_CASEFunction · 0.64