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

Method Get

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

Source from the content-addressed store, hash-verified

51}
52
53std::string mitk::Preferences::Get(const std::string& key, const std::string& def) const
54{
55 auto value = this->FindValue(key);
56 return value.has_value() ? value.value() : def;
57}
58
59void mitk::Preferences::Put(const std::string& key, const std::string& value)
60{

Callers

nothing calls this directly

Calls 2

FindValueMethod · 0.95
valueMethod · 0.45

Tested by

no test coverage detected