Lines Matching +full:key +full:- +full:value
21 * The property is a vector of strings of the form: "KEY=VALUE",
22 * and this class provides a getValue("KEY") API that would return
23 * "VALUE".
38 * @param[in] ad - the AdditionalData property vector with
39 * entries of "KEY=VALUE"
46 * @brief Returns the value of the AdditionalData item for the
47 * key passed in.
48 * @param[in] key - the key to search for
50 * @return optional<string> - the value, if found
52 std::optional<std::string> getValue(const std::string& key) const in getValue()
54 auto entry = _data.find(key); in getValue()
57 return entry->second; in getValue()
63 * @brief Remove a key/value pair from the contained data
65 * @param[in] key - The key of the entry to remove
67 void remove(const std::string& key) in remove() argument
69 _data.erase(key); in remove()
87 * @return json - The JSON object
98 * @return const std::map<std::string, std::string>& - The data
106 * @brief Adds a key/value pair to the object
108 * @param[in] key - The key
109 * @param[in] value - The value
111 void add(const std::string& key, const std::string& value) in add() argument
113 _data.emplace(key, value); in add()