| 69 | } |
| 70 | |
| 71 | bool 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 | |
| 81 | void Bundle::putBool(const std::string& key, bool value) { |
| 82 | this->entries[key] = { |
no outgoing calls
no test coverage detected