rippled
|
Represents a JSON array being written to a Writer. More...
Public Member Functions | |
template<typename Scalar > | |
void | append (Scalar const &) |
Append a scalar to the Arrary. More... | |
void | append (Json::Value const &) |
Appends a Json::Value to an array. More... | |
Object | appendObject () |
Append a new Object and return it. More... | |
Array | appendArray () |
Append a new Array and return it. More... | |
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 140 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 101 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 110 of file Object.cpp.
|
protectedinherited |
Definition at line 65 of file Object.cpp.
|
protectedinherited |