MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / getDefault

Method getDefault

src/common/StateDatabase.cpp:448–457  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

446
447
448std::string StateDatabase::getDefault(const std::string& name) const {
449 DEBUG_LOOKUPS(name);
450 ItemMap::const_iterator it = items.find(name);
451 if (it != items.end()) {
452 return it->second.defValue;
453 }
454 else {
455 return "";
456 }
457}
458
459
460StateDatabase::Permission

Callers 3

writeBZDBvarFunction · 0.45
writeWorldMethod · 0.45
writeBZDBFunction · 0.45

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected