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

Function get_bundle_key

Tactility/Source/PreferencesMock.cpp:18–20  ·  view source on GitHub ↗

* Creates a string that is effectively "namespace:key" so we can create a single map (bundle) * to store all the key/value pairs. * * @param[in] namespace * @param[in] key * @param[out] out */

Source from the content-addressed store, hash-verified

16 * @param[out] out
17 */
18std::string get_bundle_key(const std::string& namespace_, const std::string& key) {
19 return namespace_ + ':' + key;
20}
21
22bool Preferences::hasBool(const std::string& key) const {
23 std::string bundle_key = get_bundle_key(namespace_, key);

Callers 12

hasBoolMethod · 0.85
hasInt32Method · 0.85
hasInt64Method · 0.85
hasStringMethod · 0.85
optBoolMethod · 0.85
optInt32Method · 0.85
optInt64Method · 0.85
optStringMethod · 0.85
putBoolMethod · 0.85
putInt32Method · 0.85
putInt64Method · 0.85
putStringMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected