MCPcopy Create free account
hub / github.com/MITK/MITK / GetBool

Method GetBool

Modules/Core/src/IO/mitkPreferences.cpp:86–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86bool mitk::Preferences::GetBool(const std::string& key, bool def) const
87{
88 auto value = this->FindValue(key);
89
90 return value.has_value()
91 ? boost::algorithm::to_lower_copy(value.value()) == "true"
92 : def;
93}
94
95void mitk::Preferences::PutBool(const std::string& key, bool value)
96{

Callers 15

ResolveSmoothedMethod · 0.80
UpdateMethod · 0.80
ApplyPreferencesMethod · 0.80
OnFetchBtnClickedMethod · 0.80
ConstructLocalSessionMethod · 0.80
PopulateTasksMethod · 0.80
UpdateRunButtonStateMethod · 0.80

Calls 2

FindValueMethod · 0.95
valueMethod · 0.45

Tested by 3

OverrideBoolMethod · 0.64
FillMenuMethod · 0.64