Writes a Value in JSON format in a human friendly way, to a stream rather than to a string. More...
#include <json.h>
Public Member Functions | |
| StyledStreamWriter (std::string indentation="\t") | |
| StyledStreamWriter (std::string indentation="\t") | |
| void | write (std::ostream &out, const Value &root) |
| Serialize a Value in JSON format. More... | |
| void | write (std::ostream &out, const Value &root) |
| Serialize a Value in JSON format. More... | |
| ~StyledStreamWriter () | |
| ~StyledStreamWriter () | |
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_: 1 |
| ChildValues | childValues_ |
| std::ostream * | document_ |
| std::string | indentation_ |
| bool | indented_: 1 |
| std::string | indentString_ |
| int | rightMargin_ |
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:
If the Value have comments then they are outputed according to their CommentPlacement.
| indentation | Each level will be indented by this amount extra. |
The rules for line break and indent are as follow:
If the Value have comments then they are outputted according to their CommentPlacement.
| indentation | Each level will be indented by this amount extra. |
Definition at line 1938 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.
|
private |
Definition at line 1966 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.
|
private |
Definition at line 1966 of file third_party/protobuf/conformance/third_party/jsoncpp/json.h.
| Json::StyledStreamWriter::StyledStreamWriter | ( | std::string | indentation = "\t" | ) |
Definition at line 4574 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
|
inline |
Definition at line 1941 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.
| Json::StyledStreamWriter::StyledStreamWriter | ( | std::string | indentation = "\t" | ) |
|
inline |
Definition at line 1941 of file third_party/protobuf/conformance/third_party/jsoncpp/json.h.
Definition at line 4780 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
|
private |
|
private |
Definition at line 4744 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
Definition at line 4696 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
|
staticprivate |
|
staticprivate |
|
private |
Definition at line 4723 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
|
private |
|
private |
Definition at line 4746 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
|
private |
Serialize a Value in JSON format.
Definition at line 4578 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
Definition at line 4651 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
Definition at line 4769 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
Definition at line 4751 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
|
private |
Definition at line 4730 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
|
private |
Definition at line 4592 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
|
private |
Definition at line 4738 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
|
private |
|
private |
Definition at line 1973 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.
|
private |
Definition at line 1968 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.
|
private |
Definition at line 1969 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.
|
private |
Definition at line 1972 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.
|
private |
Definition at line 1974 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.
|
private |
Definition at line 1970 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.
|
private |
Definition at line 1971 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.