MCPcopy Create free account
hub / github.com/altairwei/WizNotePlus / BuiltStyledStreamWriter

Class BuiltStyledStreamWriter

src/share/jsoncpp/jsoncpp.cpp:4918–4956  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4916};
4917
4918struct BuiltStyledStreamWriter : public StreamWriter
4919{
4920 BuiltStyledStreamWriter(
4921 JSONCPP_STRING const& indentation,
4922 CommentStyle::Enum cs,
4923 JSONCPP_STRING const& colonSymbol,
4924 JSONCPP_STRING const& nullSymbol,
4925 JSONCPP_STRING const& endingLineFeedSymbol,
4926 bool useSpecialFloats,
4927 unsigned int precision);
4928 int write(Value const& root, JSONCPP_OSTREAM* sout) JSONCPP_OVERRIDE;
4929private:
4930 void writeValue(Value const& value);
4931 void writeArrayValue(Value const& value);
4932 bool isMultineArray(Value const& value);
4933 void pushValue(JSONCPP_STRING const& value);
4934 void writeIndent();
4935 void writeWithIndent(JSONCPP_STRING const& value);
4936 void indent();
4937 void unindent();
4938 void writeCommentBeforeValue(Value const& root);
4939 void writeCommentAfterValueOnSameLine(Value const& root);
4940 static bool hasCommentForValue(const Value& value);
4941
4942 typedef std::vector<JSONCPP_STRING> ChildValues;
4943
4944 ChildValues childValues_;
4945 JSONCPP_STRING indentString_;
4946 unsigned int rightMargin_;
4947 JSONCPP_STRING indentation_;
4948 CommentStyle::Enum cs_;
4949 JSONCPP_STRING colonSymbol_;
4950 JSONCPP_STRING nullSymbol_;
4951 JSONCPP_STRING endingLineFeedSymbol_;
4952 bool addChildValues_ : 1;
4953 bool indented_ : 1;
4954 bool useSpecialFloats_ : 1;
4955 unsigned int precision_;
4956};
4957BuiltStyledStreamWriter::BuiltStyledStreamWriter(
4958 JSONCPP_STRING const& indentation,
4959 CommentStyle::Enum cs,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected