Home
last modified time | relevance | path

Searched defs:Serializable (Results 1 – 1 of 1) sorted by relevance

/base/inputmethod/imf/services/json/include/
Dserializable.h28 struct Serializable { struct
30 virtual ~Serializable(){}; in ~Serializable() argument
42 static bool GetValue(cJSON *node, const std::string &name, Serializable &value); argument
46 auto subNode = GetSubNode(node, name);
51 auto size = cJSON_GetArraySize(subNode);
57 bool ret = true;
58 for (int32_t i = 0; i < size; i++) {
59 auto item = cJSON_GetArrayItem(subNode, i);
69 …ypename T> static bool SetValue(cJSON *node, const std::string &name, const std::vector<T> &values) in SetValue()