Lines Matching refs:valueObj
204 Json::Value valueObj = lightConfig[key];
205 if (valueObj.isNull() || !valueObj.isObject()) {
210 Json::Value soc = GetValue(valueObj, "soc");
211 Json::Value rgb = GetValue(valueObj, "rgb");
250 Json::Value valueObj = chargeSceneConfig[key];
251 if (!IsValidChargeSceneConfig(key, valueObj)) {
256 bool parseSupportPathResult = ParseChargeSceneSupport(valueObj, tempChargeSceneConfig);
257 bool parseSetPathResult = ParseChargeSceneSet(valueObj, tempChargeSceneConfig);
258 bool parseGetPathResult = ParseChargeSceneGet(valueObj, tempChargeSceneConfig);
268 bool BatteryConfig::IsValidChargeSceneConfig(const std::string& key, const Json::Value& valueObj)
270 if (key.empty() || valueObj.isNull() || !valueObj.isObject()) {
275 Json::Value supportPath = GetValue(valueObj, "support.path");
276 Json::Value setPath = GetValue(valueObj, "set.path");
277 Json::Value getPath = GetValue(valueObj, "get.path");
286 bool BatteryConfig::ParseChargeSceneSupport(const Json::Value& valueObj, BatteryConfig::ChargeSceneConfig& config)
288 Json::Value supportPath = GetValue(valueObj, "support.path");
289 Json::Value type = GetValue(valueObj, "support.type");
290 Json::Value expectValue = GetValue(valueObj, "support.expect_value");
303 bool BatteryConfig::ParseChargeSceneSet(const Json::Value& valueObj, BatteryConfig::ChargeSceneConfig& config)
305 Json::Value setPath = GetValue(valueObj, "set.path");
316 bool BatteryConfig::ParseChargeSceneGet(const Json::Value& valueObj, BatteryConfig::ChargeSceneConfig& config)
318 Json::Value getPath = GetValue(valueObj, "get.path");
350 Json::Value valueObj = ueventConfig[key];
351 if (valueObj.isNull() || !valueObj.isObject()) {
356 Json::Value::Members ObjMembers = valueObj.getMemberNames();
359 if (!valueObj[event].isString()) {
362 std::string act = valueObj[event].asString();