|
rippled
|
Writes a Value in JSON format in a human friendly way, to a stream rather than to a string. More...
#include <json_writer.h>

Public Member Functions | |
| StyledStreamWriter (std::string indentation="\t") | |
| ~StyledStreamWriter () | |
| void | write (std::ostream &out, Value const &root) |
| Serialize a Value in JSON format. | |
Private Types | |
| using | ChildValues = std::vector< std::string > |
Private Member Functions | |
| void | writeValue (Value const &value) |
| void | writeArrayValue (Value const &value) |
| bool | isMultineArray (Value const &value) |
| void | pushValue (std::string const &value) |
| void | writeIndent () |
| void | writeWithIndent (std::string const &value) |
| void | indent () |
| void | unindent () |
Private Attributes | |
| ChildValues | childValues_ |
| std::ostream * | document_ |
| std::string | indentString_ |
| int | rightMargin_ |
| std::string | indentation_ |
| bool | addChildValues_ |
Writes a Value in JSON format in a human friendly way, to a stream rather than to a string.
The rules for line break and indent are as follow:
| indentation | Each level will be indented by this amount extra. |
Definition at line 155 of file json_writer.h.
|
private |
Definition at line 191 of file json_writer.h.
| Json::StyledStreamWriter::StyledStreamWriter | ( | std::string | indentation = "\t" | ) |
Definition at line 504 of file json_writer.cpp.
| Json::StyledStreamWriter::~StyledStreamWriter | ( | ) |
Definition at line 159 of file json_writer.h.
| void Json::StyledStreamWriter::write | ( | std::ostream & | out, |
| Value const & | root | ||
| ) |
|
private |
Definition at line 521 of file json_writer.cpp.
|
private |
Definition at line 587 of file json_writer.cpp.
|
private |
Definition at line 646 of file json_writer.cpp.
|
private |
Definition at line 680 of file json_writer.cpp.
|
private |
Definition at line 689 of file json_writer.cpp.
|
private |
Definition at line 707 of file json_writer.cpp.
|
private |
Definition at line 714 of file json_writer.cpp.
|
private |
Definition at line 720 of file json_writer.cpp.
|
private |
Definition at line 193 of file json_writer.h.
|
private |
Definition at line 194 of file json_writer.h.
|
private |
Definition at line 195 of file json_writer.h.
|
private |
Definition at line 196 of file json_writer.h.
|
private |
Definition at line 197 of file json_writer.h.
|
private |
Definition at line 198 of file json_writer.h.