|
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 136 of file json_writer.h.
|
private |
Definition at line 172 of file json_writer.h.
| Json::StyledStreamWriter::StyledStreamWriter | ( | std::string | indentation = "\t" | ) |
Definition at line 485 of file json_writer.cpp.
| Json::StyledStreamWriter::~StyledStreamWriter | ( | ) |
Definition at line 140 of file json_writer.h.
| void Json::StyledStreamWriter::write | ( | std::ostream & | out, |
| Value const & | root | ||
| ) |
|
private |
Definition at line 502 of file json_writer.cpp.
|
private |
Definition at line 568 of file json_writer.cpp.
|
private |
Definition at line 627 of file json_writer.cpp.
|
private |
Definition at line 661 of file json_writer.cpp.
|
private |
Definition at line 670 of file json_writer.cpp.
|
private |
Definition at line 688 of file json_writer.cpp.
|
private |
Definition at line 695 of file json_writer.cpp.
|
private |
Definition at line 701 of file json_writer.cpp.
|
private |
Definition at line 174 of file json_writer.h.
|
private |
Definition at line 175 of file json_writer.h.
|
private |
Definition at line 176 of file json_writer.h.
|
private |
Definition at line 177 of file json_writer.h.
|
private |
Definition at line 178 of file json_writer.h.
|
private |
Definition at line 179 of file json_writer.h.