Home
last modified time | relevance | path

Searched refs:NodeType (Results 1 – 8 of 8) sorted by relevance

/base/update/updater/utils/json/
Djson_node.cpp23 inline const std::unordered_map<uint16_t, NodeType> &GetJsonTypeMap() in GetJsonTypeMap()
25 static const std::unordered_map<uint16_t, NodeType> jsonTypeMap { in GetJsonTypeMap()
26 …{ cJSON_Object, NodeType::OBJECT }, { cJSON_Array, NodeType::ARRAY }, { cJSON_Number, NodeType::IN… in GetJsonTypeMap()
27 …{ cJSON_String, NodeType::STRING }, { cJSON_False, NodeType::BOOL }, { cJSON_True, NodeType::BOOL… in GetJsonTypeMap()
28 { cJSON_NULL, NodeType::NUL }, in GetJsonTypeMap()
34 JsonNode::JsonNode() : type_ {NodeType::UNKNOWN} in JsonNode()
73 type_ = NodeType::UNKNOWN; in JsonNode()
93 case NodeType::OBJECT: { in Parse()
105 case NodeType::ARRAY: { in Parse()
117 case NodeType::INT: in Parse()
[all …]
Djson_visitor.h91 …if ((node.Type() != NodeType::UNKNOWN && node.Type() != NodeType::NUL && node.Type() != NodeType::…
92 (defaultNode.Type() != NodeType::UNKNOWN && defaultNode.Type() != NodeType::NUL &&
93 defaultNode.Type() != NodeType::ARRAY)) {
Djson_node.h36 enum class NodeType { OBJECT, INT, STRING, ARRAY, BOOL, NUL, UNKNOWN }; enum
79 NodeType Type() const in Type()
103 NodeType type_ {NodeType::UNKNOWN}; /* json node type */
/base/update/updater/test/unittest/utils/json/
Dutils_json_test.cpp79 EXPECT_EQ(node["key"].Type(), NodeType::STRING);
87 EXPECT_EQ(node["key"].Type(), NodeType::INT);
95 EXPECT_EQ(node["key"].Type(), NodeType::BOOL);
103 EXPECT_EQ(node["key"].Type(), NodeType::ARRAY);
114 EXPECT_EQ(node["key"].Type(), NodeType::OBJECT);
122 EXPECT_EQ(node["key1"].Type(), NodeType::NUL);
129 EXPECT_EQ(node.Type(), NodeType::UNKNOWN);
155 EXPECT_EQ(node.Type(), NodeType::OBJECT);
170 EXPECT_EQ(node["key1"].Type(), NodeType::UNKNOWN);
178 EXPECT_EQ(node["key"].Type(), NodeType::STRING);
[all …]
/base/update/updater/services/ui/
Dupdater_ui_config.cpp107 case NodeType::STRING: { in Init()
116 case NodeType::ARRAY: { in Init()
/base/update/updater/services/ui/control/
Dcallback_manager.cpp36 if (cbNodes.Type() != NodeType::ARRAY) { in LoadCallbacks()
/base/update/updater/services/ui/view/layout/
Dlayout_parser.cpp73 if (componentNodes.Type() != NodeType::ARRAY) { in ParseViewInfo()
/base/update/updater/services/ui/language/
Dlanguage_ui.cpp101 if (root.Type() != NodeType::OBJECT) { in ParseJson()