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::JsonObject Class Reference

Detailed Description

A Json object. Since key names tend to reuse the same strings, it would be nice to intern the strings here. That's a future optimization for someone.

Inheritance diagram for ola::web::JsonObject:
ola::web::JsonValue

Public Member Functions

 ~JsonObject ()
void Add (const string &key, const string &value)
void Add (const string &key, const char *value)
void Add (const string &key, unsigned int i)
void Add (const string &key, int i)
void Add (const string &key, bool value)
void Add (const string &key)
JsonObjectAddObject (const string &key)
class JsonArrayAddArray (const string &key)
void AddRaw (const string &key, 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::JsonObject::~JsonObject ( )

Clean up a JsonObject

Member Function Documentation

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

Write a JsonObject to a stream.

Implements ola::web::JsonValue.


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