rippled
|
Writes a Value in JSON format in a human friendly way. More...
Public Member Functions | |
StyledWriter () | |
virtual | ~StyledWriter () |
std::string | write (const Value &root) override |
Serialize a Value in JSON format. More... | |
Private Types | |
using | ChildValues = std::vector< std::string > |
Private Member Functions | |
void | writeValue (const Value &value) |
void | writeArrayValue (const Value &value) |
bool | isMultineArray (const Value &value) |
void | pushValue (std::string const &value) |
void | writeIndent () |
void | writeWithIndent (std::string const &value) |
void | indent () |
void | unindent () |
Private Attributes | |
ChildValues | childValues_ |
std::string | document_ |
std::string | indentString_ |
int | rightMargin_ |
int | indentSize_ |
bool | addChildValues_ |
Writes a Value in JSON format in a human friendly way.
The rules for line break and indent are as follow:
Definition at line 89 of file json_writer.h.
|
private |
Definition at line 123 of file json_writer.h.
Json::StyledWriter::StyledWriter | ( | ) |
Definition at line 272 of file json_writer.cpp.
|
virtual |
Definition at line 93 of file json_writer.h.
|
overridevirtual |
Serialize a Value in JSON format.
root | Value to serialize. |
Implements Json::WriterBase.
Definition at line 277 of file json_writer.cpp.
|
private |
Definition at line 288 of file json_writer.cpp.
|
private |
Definition at line 354 of file json_writer.cpp.
|
private |
Definition at line 411 of file json_writer.cpp.
|
private |
Definition at line 445 of file json_writer.cpp.
|
private |
Definition at line 454 of file json_writer.cpp.
|
private |
Definition at line 471 of file json_writer.cpp.
|
private |
Definition at line 478 of file json_writer.cpp.
|
private |
Definition at line 484 of file json_writer.cpp.
|
private |
Definition at line 125 of file json_writer.h.
|
private |
Definition at line 126 of file json_writer.h.
|
private |
Definition at line 127 of file json_writer.h.
|
private |
Definition at line 128 of file json_writer.h.
|
private |
Definition at line 129 of file json_writer.h.
|
private |
Definition at line 130 of file json_writer.h.