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

Method FindValue

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

Source from the content-addressed store, hash-verified

38}
39
40std::optional<std::string> mitk::Preferences::FindValue(const std::string& key) const
41{
42 const auto overrideIter = m_Overrides.find(key);
43 if (overrideIter != m_Overrides.end())
44 return overrideIter->second;
45
46 const auto propertyIter = m_Properties.find(key);
47 if (propertyIter != m_Properties.end())
48 return propertyIter->second;
49
50 return std::nullopt;
51}
52
53std::string mitk::Preferences::Get(const std::string& key, const std::string& def) const
54{

Callers 7

GetMethod · 0.95
GetIntMethod · 0.95
GetBoolMethod · 0.95
GetFloatMethod · 0.95
GetDoubleMethod · 0.95
GetByteArrayMethod · 0.95
RemoveMethod · 0.95

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected