Open Lighting Architecture
0.9.0
|
The base class for JSON values.
Public Member Functions | |
virtual void | ToString (std::ostream *output, unsigned int indent) const =0 |
Output the string representation of this value to an ostream. |
Protected Member Functions | |
void | Indent (std::ostream *output, unsigned int indent) const |
Append the give number of spaces to the output stream. |
Static Protected Attributes | |
static const unsigned int | DEFAULT_INDENT = 2 |
the default indent level |
|
inlineprotected |
Append the give number of spaces to the output stream.
output | the ostream to append to |
indent | the number of spaces to append |
|
pure virtual |
Output the string representation of this value to an ostream.
output | the ostream to output to. |
indent | the number of spaces to prepend. |
Implemented in ola::web::JsonArray, ola::web::JsonObject, ola::web::JsonRawValue, ola::web::JsonNullValue, ola::web::JsonBoolValue, ola::web::JsonIntValue, ola::web::JsonUIntValue, and ola::web::JsonStringValue.