Lines Matching defs:Serializable
28 struct Serializable { struct
30 virtual ~Serializable(){}; in ~Serializable() argument
45 static bool GetValue(cJSON *node, const std::string &name, Serializable &value); argument
54 cJSON *child = nodes->child;
55 bool result = true;
57 std::string nodeKey = child->string;
58 T value;
59 bool ret = GetValue(child, "", value);
75 cJSON *child = nodes->child;
76 bool result = true;
78 std::string nodeKey = child->string;
79 T value;
80 bool ret = GetValue(child, "", value);
92 auto subNode = GetSubNode(node, name);
97 auto size = cJSON_GetArraySize(subNode);
103 bool ret = true;
104 for (int32_t i = 0; i < size; i++) {
105 auto item = cJSON_GetArrayItem(subNode, i);
116 auto subNode = GetSubNode(node, name);
144 static bool SetValue(cJSON *node, const std::string &name, const Serializable &value); argument
147 …ypename T> static bool SetValue(cJSON *node, const std::string &name, const std::vector<T> &values) in SetValue()