Searched refs:keyPair (Results 1 – 4 of 4) sorted by relevance
/openbmc/entity-manager/src/ |
H A D | overlay.cpp | 233 for (auto keyPair = configuration.begin(); keyPair != configuration.end(); in exportDevice() local 234 keyPair++) in exportDevice() 238 if (keyPair.key() == "Name" && in exportDevice() 239 keyPair.value().type() == nlohmann::json::value_t::string) in exportDevice() 242 keyPair.value().get<std::string>(), illegalNameRegex, "_"); in exportDevice() 247 subsituteString = jsonToString(keyPair.value()); in exportDevice() 250 if (keyPair.key() == "Bus") in exportDevice() 252 bus = keyPair.value().get<uint64_t>(); in exportDevice() 254 else if (keyPair.key() == "Address") in exportDevice() 256 address = keyPair.value().get<uint64_t>(); in exportDevice() [all …]
|
H A D | perform_scan.cpp | 291 nlohmann::json::iterator& keyPair) in extractExposeActionRecordNames() argument 293 if (keyPair.value().is_string()) in extractExposeActionRecordNames() 295 matches.emplace_back(keyPair.value()); in extractExposeActionRecordNames() 299 if (keyPair.value().is_array()) in extractExposeActionRecordNames() 301 for (const auto& value : keyPair.value()) in extractExposeActionRecordNames() 314 std::cerr << "Value is invalid type " << keyPair.key() << "\n"; in extractExposeActionRecordNames() 373 nlohmann::json& expose, nlohmann::json::iterator& keyPair) in applyExposeActions() argument 375 bool isBind = boost::starts_with(keyPair.key(), "Bind"); in applyExposeActions() 376 bool isDisable = keyPair.key() == "DisableNode"; in applyExposeActions() 386 if (!extractExposeActionRecordNames(matches, keyPair)) in applyExposeActions() [all …]
|
H A D | utils.cpp | 191 nlohmann::json::iterator& keyPair, const DBusObject& object, in templateCharReplace() argument 196 auto ret = templateCharReplace(keyPair, interface, index, replaceStr); in templateCharReplace() 209 nlohmann::json::iterator& keyPair, const DBusInterface& interface, in templateCharReplace() argument 214 if (keyPair.value().type() == nlohmann::json::value_t::object || in templateCharReplace() 215 keyPair.value().type() == nlohmann::json::value_t::array) in templateCharReplace() 217 for (auto nextLayer = keyPair.value().begin(); in templateCharReplace() 218 nextLayer != keyPair.value().end(); nextLayer++) in templateCharReplace() 225 std::string* strPtr = keyPair.value().get_ptr<std::string*>(); in templateCharReplace() 253 std::visit([&](auto&& val) { keyPair.value() = val; }, propValue); in templateCharReplace() 313 keyPair.value() = result; in templateCharReplace() [all …]
|
H A D | utils.hpp | 135 nlohmann::json::iterator& keyPair, const DBusObject& object, size_t index, 139 nlohmann::json::iterator& keyPair, const DBusInterface& interface,
|