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

Detailed Description

An array of Json values. Rather than adding JsonValue objects directly (and creating circular references, dealing with memory management etc.) we provide helper methods.

Inheritance diagram for ola::web::JsonArray:
ola::web::JsonValue

Public Member Functions

 ~JsonArray ()
void Append (const string &value)
void Append (const char *value)
void Append (unsigned int i)
void Append (int i)
void Append (bool value)
void Append ()
JsonObjectAppendObject ()
JsonArrayAppendArray ()
void AppendRaw (const string &value)
void ToString (ostream *output, unsigned int indent) const

Additional Inherited Members

- Protected Member Functions inherited from ola::web::JsonValue
void Indent (ostream *output, unsigned int indent) const
- Static Protected Attributes inherited from ola::web::JsonValue
static const unsigned int INDENT = 2

Constructor & Destructor Documentation

ola::web::JsonArray::~JsonArray ( )

Clean up a JsonArray

Member Function Documentation

void ola::web::JsonArray::ToString ( ostream *  output,
unsigned int  indent 
) const
virtual

Write a JsonArray to a stream.

Implements ola::web::JsonValue.


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