MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / optBool

Method optBool

TactilityCore/Source/Bundle.cpp:41–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41bool Bundle::optBool(const std::string& key, bool& out) const {
42 auto entry = this->entries.find(key);
43 if (entry != std::end(this->entries) && entry->second.type == Type::Bool) {
44 out = entry->second.value_bool;
45 return true;
46 } else {
47 return false;
48 }
49}
50
51bool Bundle::optInt32(const std::string& key, int32_t& out) const {
52 auto entry = this->entries.find(key);

Callers 3

BundleTest.cppFile · 0.45
tt_preferences_opt_boolFunction · 0.45
tt_bundle_opt_boolFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected