Writes a Value in JSON format in a human friendly way. More...
#include <json.h>
Public Member Functions | |
StyledWriter () | |
StyledWriter () | |
std::string | write (const Value &root) override |
Serialize a Value in JSON format. More... | |
std::string | write (const Value &root) override |
Serialize a Value in JSON format. More... | |
~StyledWriter () override | |
~StyledWriter () override | |
![]() | |
virtual | ~Writer () |
virtual | ~Writer () |
Private Types | |
typedef std::vector< std::string > | ChildValues |
typedef std::vector< std::string > | ChildValues |
Private Member Functions | |
bool | hasCommentForValue (const Value &value) |
bool | hasCommentForValue (const Value &value) |
void | indent () |
void | indent () |
bool | isMultineArray (const Value &value) |
bool | isMultineArray (const Value &value) |
void | pushValue (const std::string &value) |
void | pushValue (const std::string &value) |
void | unindent () |
void | unindent () |
void | writeArrayValue (const Value &value) |
void | writeArrayValue (const Value &value) |
void | writeCommentAfterValueOnSameLine (const Value &root) |
void | writeCommentAfterValueOnSameLine (const Value &root) |
void | writeCommentBeforeValue (const Value &root) |
void | writeCommentBeforeValue (const Value &root) |
void | writeIndent () |
void | writeIndent () |
void | writeValue (const Value &value) |
void | writeValue (const Value &value) |
void | writeWithIndent (const std::string &value) |
void | writeWithIndent (const std::string &value) |
Static Private Member Functions | |
static std::string | normalizeEOL (const std::string &text) |
static std::string | normalizeEOL (const std::string &text) |
Private Attributes | |
bool | addChildValues_ |
ChildValues | childValues_ |
std::string | document_ |
int | indentSize_ |
std::string | indentString_ |
int | rightMargin_ |
Writes a Value in JSON format in a human friendly way.
The rules for line break and indent are as follow:
If the Value have comments then they are outputed according to their CommentPlacement.
The rules for line break and indent are as follow:
If the Value have comments then they are outputted according to their CommentPlacement.
Definition at line 1876 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.
|
private |
Definition at line 1902 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.
|
private |
Definition at line 1902 of file third_party/protobuf/conformance/third_party/jsoncpp/json.h.
Json::StyledWriter::StyledWriter | ( | ) |
Definition at line 4361 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
|
inlineoverride |
Definition at line 1879 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.
Json::StyledWriter::StyledWriter | ( | ) |
|
inlineoverride |
Definition at line 1879 of file third_party/protobuf/conformance/third_party/jsoncpp/json.h.
Definition at line 4565 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
|
private |
|
private |
Definition at line 4527 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
Definition at line 4477 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
|
staticprivate |
|
staticprivate |
|
private |
Definition at line 4504 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
|
private |
|
private |
Definition at line 4529 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
|
private |
Serialize a Value in JSON format.
root | Value to serialize. |
Implements Json::Writer.
Definition at line 4364 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
Serialize a Value in JSON format.
root | Value to serialize. |
Implements Json::Writer.
Definition at line 4434 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
Definition at line 4554 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
Definition at line 4534 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
|
private |
Definition at line 4511 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
|
private |
Definition at line 4375 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
|
private |
Definition at line 4522 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
|
private |
|
private |
Definition at line 1909 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.
|
private |
Definition at line 1904 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.
|
private |
Definition at line 1905 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.
|
private |
Definition at line 1908 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.
|
private |
Definition at line 1906 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.
|
private |
Definition at line 1907 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.