MCPcopy Create free account
hub / github.com/ElementsProject/elements / GetBoolArg

Method GetBoolArg

src/util/system.cpp:597–601  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

595}
596
597bool ArgsManager::GetBoolArg(const std::string& strArg, bool fDefault) const
598{
599 const util::SettingsValue value = GetSetting(strArg);
600 return value.isNull() ? fDefault : value.isBool() ? value.get_bool() : InterpretBool(value.get_str());
601}
602
603bool ArgsManager::SoftSetArg(const std::string& strArg, const std::string& strValue)
604{

Callers 15

IsValidPeginWitnessFunction · 0.80
AppInitRawTxFunction · 0.80
OutputTxFunction · 0.80
InitRPCAuthenticationFunction · 0.80
PrepareRequestMethod · 0.80
ConnectAndCallRPCFunction · 0.80
CommandLineRPCFunction · 0.80
ProcessMessagesMethod · 0.80
ShutdownFunction · 0.80
AppInitServersFunction · 0.80
InitParameterInteractionFunction · 0.80
AppInitBasicSetupFunction · 0.80

Calls 5

GetSettingFunction · 0.85
InterpretBoolFunction · 0.85
isBoolMethod · 0.80
get_boolMethod · 0.80
isNullMethod · 0.45

Tested by 6

CheckValueMethod · 0.64
TestParseFunction · 0.64
BOOST_AUTO_TEST_CASEFunction · 0.64
BOOST_AUTO_TEST_CASEFunction · 0.64
FUZZ_TARGET_INITFunction · 0.64
TestingSetupMethod · 0.64