MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / get

Method get

framework/configfile.cpp:268–281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

266 }
267
268 bool get(const UString name)
269 {
270 if (!this->parsed)
271 {
272 LogError("Not yet parsed options");
273 return false;
274 }
275 auto it = this->modifiedOptions.find(name);
276 if (it != this->modifiedOptions.end())
277 {
278 return true;
279 }
280 return vm.count(name);
281 }
282 template <typename T> const T &getTyped(const UString &key)
283 {
284 if (!this->parsed)

Callers 2

parseOptionsMethod · 0.95
ConfigFileImplClass · 0.95

Calls 2

endMethod · 0.80
countMethod · 0.45

Tested by

no test coverage detected