Open Lighting Architecture  0.9.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Static Public Member Functions | List of all members
ola::web::JsonWriter Class Reference

Detailed Description

A class to serialize a JSONValue to text.

Inheritance diagram for ola::web::JsonWriter:
ola::web::JsonValueConstVisitorInterface ola::web::JsonObjectPropertyVisitor

Static Public Member Functions

static void Write (std::ostream *output, const JsonValue &value)
 Write the string representation of the JsonValue to a ostream.
static std::string AsString (const JsonValue &value)
 Get the string representation of the JsonValue.

Additional Inherited Members

- Public Member Functions inherited from ola::web::JsonValueConstVisitorInterface
virtual void Visit (const JsonString &value)=0
virtual void Visit (const JsonBool &value)=0
virtual void Visit (const JsonNull &value)=0
virtual void Visit (const JsonRawValue &value)=0
virtual void Visit (const JsonObject &value)=0
virtual void Visit (const JsonArray &value)=0
virtual void Visit (const JsonUInt &value)=0
virtual void Visit (const JsonUInt64 &value)=0
virtual void Visit (const JsonInt &value)=0
virtual void Visit (const JsonInt64 &value)=0
virtual void Visit (const JsonDouble &value)=0
- Private Member Functions inherited from ola::web::JsonObjectPropertyVisitor
virtual void VisitProperty (const std::string &property, const JsonValue &value)=0
 Visit the value at the given property.

Member Function Documentation

string ola::web::JsonWriter::AsString ( const JsonValue value)
static

Get the string representation of the JsonValue.

Parameters
valuethe JsonValue to serialize.
void ola::web::JsonWriter::Write ( std::ostream *  output,
const JsonValue value 
)
static

Write the string representation of the JsonValue to a ostream.

Parameters
outputthe ostream to write to
valuethe JsonValue to serialize.

The documentation for this class was generated from the following files: