Lines Matching refs:key

109                 std::string_view key [[maybe_unused]])  in checkRange()  argument
115 BMCWEB_LOG_DEBUG("Value for key {} was NAN", key); in checkRange()
124 BMCWEB_LOG_DEBUG("Value for key {} was greater than max {}", key, in checkRange()
134 BMCWEB_LOG_DEBUG("Value for key {} was less than min {}", key, in checkRange()
145 std::string_view key, Type& value);
148 UnpackErrorCode unpackValueVariant(nlohmann::json& j, std::string_view key, in unpackValueVariant() argument
154 UnpackErrorCode unpack = unpackValueWithErrorCode(j, key, type); in unpackValueVariant()
161 return unpackValueVariant<Index + 1, Args...>(j, key, v); in unpackValueVariant()
168 std::string_view key, Type& value) in unpackValueWithErrorCode() argument
190 if (!checkRange<Type>(*jsonPtr, key)) in unpackValueWithErrorCode()
204 if (!checkRange<Type>(*jsonPtr, key)) in unpackValueWithErrorCode()
219 if (!checkRange<Type>(*jsonPtr, key)) in unpackValueWithErrorCode()
250 val, key, value.back()) && in unpackValueWithErrorCode()
260 BMCWEB_LOG_DEBUG("Value for key {} was incorrect type: {}", key, in unpackValueWithErrorCode()
270 bool unpackValue(nlohmann::json& jsonValue, std::string_view key, in unpackValue() argument
278 ret = unpackValue<typename Type::value_type>(jsonValue, key, res, in unpackValue()
288 messages::propertyValueTypeError(res, res.jsonValue, key); in unpackValue()
293 messages::propertyValueTypeError(res, res.jsonValue, key); in unpackValue()
299 ret = unpackValue<typename Type::value_type>(val, key, res, in unpackValue()
310 messages::propertyValueTypeError(res, res.jsonValue, key); in unpackValue()
317 ret = unpackValue<typename Type::value_type>(val, key, res, in unpackValue()
324 UnpackErrorCode ec = unpackValueVariant(jsonValue, key, value); in unpackValue()
329 messages::propertyValueTypeError(res, jsonValue, key); in unpackValue()
333 messages::propertyValueNotInList(res, jsonValue, key); in unpackValue()
340 UnpackErrorCode ec = unpackValueWithErrorCode(jsonValue, key, value); in unpackValue()
345 messages::propertyValueTypeError(res, jsonValue, key); in unpackValue()
349 messages::propertyValueNotInList(res, jsonValue, key); in unpackValue()
359 bool unpackValue(nlohmann::json& jsonValue, std::string_view key, Type& value) in unpackValue() argument
365 ret = unpackValue<typename Type::value_type>(jsonValue, key, *value) && in unpackValue()
383 ret = unpackValue<typename Type::value_type>(val, key, in unpackValue()
400 ret = unpackValue<typename Type::value_type>(val, key, in unpackValue()
407 UnpackErrorCode ec = unpackValueWithErrorCode(jsonValue, key, value); in unpackValue()
499 std::string_view key; member
518 std::string_view key = unpackSpec.key; in readJsonHelperObject() local
519 size_t keysplitIndex = key.find('/'); in readJsonHelperObject()
523 leftover = key.substr(keysplitIndex + 1); in readJsonHelperObject()
524 key = key.substr(0, keysplitIndex); in readJsonHelperObject()
527 if (key != item.first || unpackSpec.complete) in readJsonHelperObject()
536 key = unpackSpec.key.substr(0, keysplitIndex + 1); in readJsonHelperObject()
538 result = details::unpackValue<nlohmann::json>(item.second, key, in readJsonHelperObject()
549 if (!p.key.starts_with(key)) in readJsonHelperObject()
553 std::string_view thisLeftover = p.key.substr(key.size()); in readJsonHelperObject()
568 item.second, unpackSpec.key, res, *val); in readJsonHelperObject()
599 messages::propertyMissing(res, perUnpack.key); in readJsonHelperObject()
623 void packVariant(std::span<PerUnpack> toPack, std::string_view key, in packVariant() argument
630 toPack[0].key = key; in packVariant()
638 std::string_view key, FirstType&& first, in readJsonObject() argument
643 packVariant(toUnpack2, key, std::forward<FirstType>(first), in readJsonObject()
650 std::string_view key, FirstType&& first, UnpackTypes&&... in) in readJson() argument
660 return readJsonObject(*obj, res, key, std::forward<FirstType>(first), in readJson()
699 std::string_view key, UnpackTypes&&... in) in readJsonPatch() argument
713 return readJsonObject(*jsonRequest, res, key, in readJsonPatch()
719 const char* key, UnpackTypes&&... in) in readJsonAction() argument
735 return readJsonObject(*object, res, key, in readJsonAction()