Lines Matching refs:node
67 uint32_t CmdList::GetString(const Json::Value &node, int c, HandleBack callback) in GetString() argument
69 if (!node.isString()) { in GetString()
73 if (callback(c, node.asString()) != RESTOOL_SUCCESS) { in GetString()
79 uint32_t CmdList::GetArray(const Json::Value &node, int c, HandleBack callback) in GetArray() argument
81 if (!node.isArray()) { in GetArray()
85 for (Json::ArrayIndex i = 0; i < node.size(); i++) { in GetArray()
86 if (!node[i].isString()) { in GetArray()
89 if (callback(c, node[i].asString()) != RESTOOL_SUCCESS) { in GetArray()
96 uint32_t CmdList::GetModuleNames(const Json::Value &node, int c, HandleBack callback) in GetModuleNames() argument
99 if (node.isString()) { in GetModuleNames()
100 return GetString(node, c, callback); in GetModuleNames()
102 if (GetArray(node, c, [&moduleNames](int c, const string &argValue) { in GetModuleNames()
118 uint32_t CmdList::GetBool(const Json::Value &node, int c, HandleBack callback) in GetBool() argument
120 if (node.type() != Json::booleanValue) { in GetBool()
124 if (node.asBool() && callback(c, "") != RESTOOL_SUCCESS) { in GetBool()