* @brief Retrieves the string value associated with a key. * * @param key The key to retrieve. * @return The string value associated with the key, or an empty string if the key is not found. */
| 221 | * @return The string value associated with the key, or an empty string if the key is not found. |
| 222 | */ |
| 223 | inline std::string getString(const std::string &key) const |
| 224 | { |
| 225 | auto it = data.find(key); |
| 226 | return (it != data.end()) ? it->second : ""; |
| 227 | } |
| 228 | |
| 229 | /** |
| 230 | * @brief Retrieves the integer value associated with a key. |