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

Method optString

TactilityCore/Source/Bundle.cpp:71–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71bool Bundle::optString(const std::string& key, std::string& out) const {
72 auto entry = this->entries.find(key);
73 if (entry != std::end(this->entries) && entry->second.type == Type::String) {
74 out = entry->second.value_string;
75 return true;
76 } else {
77 return false;
78 }
79}
80
81void Bundle::putBool(const std::string& key, bool value) {
82 this->entries[key] = {

Callers 3

BundleTest.cppFile · 0.45
tt_bundle_opt_stringFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected