|
rippled
|
Represents a JSON array being written to a Writer. More...
#include <Object.h>


Public Member Functions | |
| template<typename Scalar > | |
| void | append (Scalar const &) |
| Append a scalar to the Arrary. | |
| void | append (Json::Value const &) |
| Appends a Json::Value to an array. | |
| Object | appendObject () |
| Append a new Object and return it. | |
| Array | appendArray () |
| Append a new Array and return it. | |
Protected Member Functions | |
| Array (Collection *parent, Writer *w) | |
Private Member Functions | |
| void | checkWritable (std::string const &label) |
Private Attributes | |
| Collection * | parent_ |
| Writer * | writer_ |
| bool | enabled_ |
Friends | |
| class | Object |
|
protected |
| void Json::Array::append | ( | Scalar const & | value | ) |
| void Json::Array::append | ( | Json::Value const & | v | ) |
Appends a Json::Value to an array.
Throws an exception if this Array was disabled.
Definition at line 127 of file Object.cpp.
| Object Json::Array::appendObject | ( | ) |
Append a new Object and return it.
This Array is disabled until that sub-object is destroyed. Throws an exception if this Array was disabled.
Definition at line 88 of file Object.cpp.
| Array Json::Array::appendArray | ( | ) |
Append a new Array and return it.
This Array is disabled until that sub-array is destroyed. Throws an exception if this Array was already disabled.
Definition at line 97 of file Object.cpp.
|
protectedinherited |
Definition at line 52 of file Object.cpp.
|
protectedinherited |