Searched refs:JSONValue (Results 1 – 3 of 3) sorted by relevance
25 class JSONValue {29 typedef std::shared_ptr<JSONValue> SP;33 JSONValue(Kind k) : m_kind(k) {} in JSONValue() function37 virtual ~JSONValue() = default;43 class JSONString : public JSONValue {58 static bool classof(const JSONValue *V) { in classof()59 return V->GetKind() == JSONValue::Kind::String; in classof()70 class JSONNumber : public JSONValue {87 : JSONValue(JSONValue::Kind::Number), m_data_type(DataType::Unsigned) { in JSONNumber()95 : JSONValue(JSONValue::Kind::Number), m_data_type(DataType::Signed) { in JSONNumber()[all …]
37 JSONString::JSONString() : JSONValue(JSONValue::Kind::String), m_data() {} in JSONString()40 : JSONValue(JSONValue::Kind::String), m_data(s ? s : "") {} in JSONString()43 : JSONValue(JSONValue::Kind::String), m_data(s) {} in JSONString()98 JSONTrue::JSONTrue() : JSONValue(JSONValue::Kind::True) {} in JSONTrue()102 JSONFalse::JSONFalse() : JSONValue(JSONValue::Kind::False) {} in JSONFalse()106 JSONNull::JSONNull() : JSONValue(JSONValue::Kind::Null) {} in JSONNull()110 JSONObject::JSONObject() : JSONValue(JSONValue::Kind::Object) {} in JSONObject()122 JSONValue::SP value(iter->second); in Write()130 bool JSONObject::SetObject(const std::string &key, JSONValue::SP value) { in SetObject()137 JSONValue::SP JSONObject::GetObject(const std::string &key) const { in GetObject()[all …]
15 void TestJSON(JSONValue *json_val, const std::function<void(T &)> &test_func) { in TestJSON()21 JSONValue::SP ParseJSON(const char *json_string) { in ParseJSON()