![]() |
NIM 跨平台 C++ SDK
|
Public 成员函数 | |
BuiltStyledStreamWriter (String indentation, CommentStyle::Enum cs, String colonSymbol, String nullSymbol, String endingLineFeedSymbol, bool useSpecialFloats, bool emitUTF8, unsigned int precision, PrecisionType precisionType) | |
int | write (Value const &root, OStream *sout) override |
![]() | |
StreamWriter () | |
virtual | ~StreamWriter () |
virtual int | write (Value const &root, OStream *sout)=0 |
Private 类型 | |
using | ChildValues = std::vector< String > |
Private 成员函数 | |
void | writeValue (Value const &value) |
void | writeArrayValue (Value const &value) |
bool | isMultilineArray (Value const &value) |
void | pushValue (String const &value) |
void | writeIndent () |
void | writeWithIndent (String const &value) |
void | indent () |
void | unindent () |
void | writeCommentBeforeValue (Value const &root) |
void | writeCommentAfterValueOnSameLine (Value const &root) |
静态 Private 成员函数 | |
static bool | hasCommentForValue (const Value &value) |
Private 属性 | |
ChildValues | childValues_ |
String | indentString_ |
unsigned int | rightMargin_ |
String | indentation_ |
CommentStyle::Enum | cs_ |
String | colonSymbol_ |
String | nullSymbol_ |
String | endingLineFeedSymbol_ |
bool | addChildValues_: 1 |
bool | indented_: 1 |
bool | useSpecialFloats_: 1 |
bool | emitUTF8_: 1 |
unsigned int | precision_ |
PrecisionType | precisionType_ |
额外继承的成员函数 | |
![]() | |
OStream * | sout_ |
|
private |
nim_cpp_wrapper_util::Json::BuiltStyledStreamWriter::BuiltStyledStreamWriter | ( | String | indentation, |
CommentStyle::Enum | cs, | ||
String | colonSymbol, | ||
String | nullSymbol, | ||
String | endingLineFeedSymbol, | ||
bool | useSpecialFloats, | ||
bool | emitUTF8, | ||
unsigned int | precision, | ||
PrecisionType | precisionType | ||
) |
|
staticprivate |
|
private |
|
private |
|
private |
|
private |
|
overridevirtual |
Write Value into document as configured in sub-class. Do not take ownership of sout, but maintain a reference during function.
std::exception | possibly, depending on configuration |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |