Lines Matching refs:jsonObj

51 Zone::Zone(const json& jsonObj, const sdeventplus::Event& event, Manager* mgr) :  in Zone()  argument
52 ConfigBase(jsonObj), _dbusZone{}, _manager(mgr), _defaultFloor(0), in Zone()
59 if (jsonObj.contains("increase_delay"))
62 std::chrono::seconds(jsonObj["increase_delay"].get<uint64_t>());
66 setPowerOnTarget(jsonObj);
70 if (jsonObj.contains("default_ceiling"))
72 _defaultCeiling = jsonObj["default_ceiling"].get<uint64_t>();
78 if (jsonObj.contains("default_floor"))
80 _defaultFloor = jsonObj["default_floor"].get<uint64_t>();
96 if (jsonObj.contains("decrease_interval"))
99 std::chrono::seconds(jsonObj["decrease_interval"].get<uint64_t>());
103 if (jsonObj.contains("interfaces"))
105 setInterfaces(jsonObj);
436 void Zone::setPowerOnTarget(const json& jsonObj) in setPowerOnTarget() argument
438 if (!jsonObj.contains("poweron_target")) in setPowerOnTarget()
441 log<level::ERR>(msg, entry("JSON=%s", jsonObj.dump().c_str())); in setPowerOnTarget()
444 _poweronTarget = jsonObj["poweron_target"].get<uint64_t>(); in setPowerOnTarget()
447 void Zone::setInterfaces(const json& jsonObj) in setInterfaces() argument
449 for (const auto& interface : jsonObj["interfaces"]) in setInterfaces()
561 std::function<void(DBusZone&, Zone&)> supported(const json& jsonObj, in supported() argument
565 if (!jsonObj.contains("values")) in supported()
569 entry("JSON=%s", jsonObj.dump().c_str())); in supported()
573 for (const auto& value : jsonObj["values"]) in supported()
595 std::function<void(DBusZone&, Zone&)> current(const json& jsonObj, bool persist) in current() argument
598 if (!jsonObj.contains("value")) in current()
602 entry("JSON=%s", jsonObj.dump().c_str())); in current()
610 jsonObj["value"].get<std::string>(), persist); in current()