top | up | prev | next

JsonValue Abstract Class

Definition at line 23 of Json.hpp

Constructors

JsonValue(JsonValueType type_)
JsonValue(const JsonValue&) delete

Member Functions

JsonValue* Clone() const pure virtual
std::string ToString() const pure virtual
JsonValueType Type() const
void Write(CodeFormatter& formatter) virtual
JsonValue& operator=(const JsonValue&) delete

Member Variables

JsonValueType type

Constructor Details

JsonValue Constructor

soulng::util::JsonValue::JsonValue(JsonValueType type_)

Definition at line 15 of Json.cpp :
 15 : type(type_)
 16 {
 17 }


Declaration at line 26 of Json.hpp


JsonValue Constructor

soulng::util::JsonValue::JsonValue(const JsonValue &) delete

Definition at line 27 of Json.hpp


Member Function Details

Clone Member Function

JsonValue * soulng::util::JsonValue::Clone() const pure virtual

Definition at line 30 of Json.hpp

Derived class overrides: soulng::util::JsonArray::Clone , soulng::util::JsonBool::Clone , soulng::util::JsonNull::Clone , soulng::util::JsonNumber::Clone , soulng::util::JsonObject::Clone , soulng::util::JsonString::Clone


ToString Member Function

std::string soulng::util::JsonValue::ToString() const pure virtual

Definition at line 32 of Json.hpp

Derived class overrides: soulng::util::JsonArray::ToString , soulng::util::JsonBool::ToString , soulng::util::JsonNull::ToString , soulng::util::JsonNumber::ToString , soulng::util::JsonObject::ToString , soulng::util::JsonString::ToString

Called by: soulng::util::JsonValue::Write


Type Member Function

JsonValueType soulng::util::JsonValue::Type() const

Definition at line 31 of Json.hpp :
 31 { return type; }

Called by: soulng::util::JsonArray::Write , soulng::util::JsonObject::GetStringField , soulng::util::JsonObject::Write


Write Member Function

void soulng::util::JsonValue::Write(CodeFormatter & formatter) virtual

Definition at line 23 of Json.cpp :
 24 {
 25     formatter.Write(ToString());
 26 }


Declaration at line 33 of Json.hpp

Derived class overrides: soulng::util::JsonArray::Write , soulng::util::JsonObject::Write

Calls: soulng::util::CodeFormatter::Write , soulng::util::JsonValue::ToString

Called by: soulng::util::JsonObject::Write


operator= Member Function

JsonValue & soulng::util::JsonValue::operator=(const JsonValue &) delete

Definition at line 28 of Json.hpp


top | up | prev | next