![]() |
Open Lighting Architecture
0.9.0
|
An array of JSON values. Arrays in JSON can contain values of different types.
Public Member Functions | |
| void | Append (const std::string &value) |
| Append a string value to the array. | |
| void | Append (const char *value) |
| Append a string value to the array. | |
| void | Append (unsigned int i) |
| Append an unsigned int value to the array. | |
| void | Append (int i) |
| Append an int value to the array. | |
| void | Append (bool value) |
| Append a bool value to the array. | |
| void | Append () |
| Append a null value to the array. | |
| JsonObject * | AppendObject () |
| Append a JsonObject to the array. | |
| JsonArray * | AppendArray () |
| Append a JsonArray to the array. | |
| void | AppendRaw (const std::string &value) |
| Append a raw value to the array. | |
| void | ToString (std::ostream *output, unsigned int indent) const |
| Output the string representation of this value to an ostream. | |
Additional Inherited Members | |
Protected Member Functions inherited from ola::web::JsonValue | |
| void | Indent (std::ostream *output, unsigned int indent) const |
| Append the give number of spaces to the output stream. | |
Static Protected Attributes inherited from ola::web::JsonValue | |
| static const unsigned int | DEFAULT_INDENT = 2 |
| the default indent level | |
|
inline |
Append a string value to the array.
| value | the value to append |
|
inline |
Append a string value to the array.
| value | the value to append |
|
inline |
Append an unsigned int value to the array.
| i | the value to append |
|
inline |
Append an int value to the array.
| i | the value to append |
|
inline |
Append a bool value to the array.
| value | the value to append |
|
inline |
|
inline |
Append a JsonObject to the array.
|
virtual |
Output the string representation of this value to an ostream.
| output | the ostream to output to. |
| indent | the number of spaces to prepend. |
Implements ola::web::JsonValue.
1.8.1.2