MCPcopy Create free account
hub / github.com/Audio4Linux/JDSP4Linux / get

Method get

src/config/AppConfig.h:123–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121
122 template<class T>
123 T get(const Key &key) const
124 {
125 bool exists;
126 auto skey = QVariant::fromValue(key).toString();
127 auto variant = _appconf->getVariant(skey, true, &exists);
128
129 if(!exists && definitions.contains(key))
130 {
131 return convertVariant<T>(definitions[key]);
132 }
133
134 return convertVariant<T>(variant);
135 }
136
137 bool exists(const Key &key);
138

Callers

nothing calls this directly

Calls 2

getVariantMethod · 0.80
containsMethod · 0.45

Tested by

no test coverage detected