Lines Matching defs:key
31 PutIntValue(key, val); \
39 PutLongValue(key, val); \
47 PutFloatValue(key, val); \
55 PutDoubleValue(key, val); \
63 PutStringValue(key, val); \
207 bool Format::PutIntValue(const std::string &key, int32_t value)
209 return SetFormatCommon(key, value, FORMAT_TYPE_INT32);
212 bool Format::PutLongValue(const std::string &key, int64_t value)
214 return SetFormatCommon(key, value, FORMAT_TYPE_INT64);
217 bool Format::PutFloatValue(const std::string &key, float value)
219 return SetFormatCommon(key, value, FORMAT_TYPE_FLOAT);
222 bool Format::PutDoubleValue(const std::string &key, double value)
224 return SetFormatCommon(key, value, FORMAT_TYPE_DOUBLE);
227 bool Format::PutStringValue(const std::string &key, const std::string &value)
229 return SetFormatCommon(key, value, FORMAT_TYPE_STRING);
233 bool Format::SetFormatCommon(const std::string &key, const T &value, FormatDataType type)
235 auto iter = formatMap_.find(key);
247 MEDIA_ERR_LOG("Format::SetFormatCommon failed. Key: %s", key.c_str());
251 formatMap_[key] = data;
255 bool Format::GetStringValue(const std::string &key, std::string &value) const
257 auto iter = formatMap_.find(key);
259 MEDIA_DEBUG_LOG("Format::GetFormat failed. Key: %s", key.c_str());
266 bool Format::GetIntValue(const std::string &key, int32_t &value) const
268 auto iter = formatMap_.find(key);
270 MEDIA_DEBUG_LOG("Format::GetFormat failed. Key: %s", key.c_str());
277 bool Format::GetLongValue(const std::string &key, int64_t &value) const
279 auto iter = formatMap_.find(key);
281 MEDIA_DEBUG_LOG("Format::GetFormat failed. Key: %s", key.c_str());
288 bool Format::GetFloatValue(const std::string &key, float &value) const
290 auto iter = formatMap_.find(key);
292 MEDIA_DEBUG_LOG("Format::GetFormat failed. Key: %s", key.c_str());
299 bool Format::GetDoubleValue(const std::string &key, double &value) const
301 auto iter = formatMap_.find(key);
303 MEDIA_DEBUG_LOG("Format::GetFormat failed. Key: %s", key.c_str());
320 std::string key = iter.first;
323 MEDIA_ERR_LOG("CopyFrom FormatData is null, key is %s", key.c_str());