NIM PC Cross Platform SDK
载入中...
搜索中...
未找到
nim_cpp_wrapper_util::Json::BuiltStyledStreamWriter结构体 参考
类 nim_cpp_wrapper_util::Json::BuiltStyledStreamWriter 继承关系图:
nim_cpp_wrapper_util::Json::StreamWriter

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
 
- Public 成员函数 继承自 nim_cpp_wrapper_util::Json::StreamWriter
 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_
 

额外继承的成员函数

- Protected 属性 继承自 nim_cpp_wrapper_util::Json::StreamWriter
OStreamsout_
 

成员类型定义说明

◆ ChildValues

构造及析构函数说明

◆ BuiltStyledStreamWriter()

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 
)

成员函数说明

◆ hasCommentForValue()

bool nim_cpp_wrapper_util::Json::BuiltStyledStreamWriter::hasCommentForValue ( const Value value)
staticprivate

◆ indent()

void nim_cpp_wrapper_util::Json::BuiltStyledStreamWriter::indent ( )
private

◆ isMultilineArray()

bool nim_cpp_wrapper_util::Json::BuiltStyledStreamWriter::isMultilineArray ( Value const &  value)
private

◆ pushValue()

void nim_cpp_wrapper_util::Json::BuiltStyledStreamWriter::pushValue ( String const &  value)
private

◆ unindent()

void nim_cpp_wrapper_util::Json::BuiltStyledStreamWriter::unindent ( )
private

◆ write()

int nim_cpp_wrapper_util::Json::BuiltStyledStreamWriter::write ( Value const &  root,
OStream sout 
)
overridevirtual

Write Value into document as configured in sub-class. Do not take ownership of sout, but maintain a reference during function.

前置条件
sout != NULL
返回
zero on success (For now, we always return zero, so check the stream instead.)
异常
std::exceptionpossibly, depending on configuration

实现了 nim_cpp_wrapper_util::Json::StreamWriter.

◆ writeArrayValue()

void nim_cpp_wrapper_util::Json::BuiltStyledStreamWriter::writeArrayValue ( Value const &  value)
private

◆ writeCommentAfterValueOnSameLine()

void nim_cpp_wrapper_util::Json::BuiltStyledStreamWriter::writeCommentAfterValueOnSameLine ( Value const &  root)
private

◆ writeCommentBeforeValue()

void nim_cpp_wrapper_util::Json::BuiltStyledStreamWriter::writeCommentBeforeValue ( Value const &  root)
private

◆ writeIndent()

void nim_cpp_wrapper_util::Json::BuiltStyledStreamWriter::writeIndent ( )
private

◆ writeValue()

void nim_cpp_wrapper_util::Json::BuiltStyledStreamWriter::writeValue ( Value const &  value)
private

◆ writeWithIndent()

void nim_cpp_wrapper_util::Json::BuiltStyledStreamWriter::writeWithIndent ( String const &  value)
private

类成员变量说明

◆ addChildValues_

bool nim_cpp_wrapper_util::Json::BuiltStyledStreamWriter::addChildValues_
private

◆ childValues_

ChildValues nim_cpp_wrapper_util::Json::BuiltStyledStreamWriter::childValues_
private

◆ colonSymbol_

String nim_cpp_wrapper_util::Json::BuiltStyledStreamWriter::colonSymbol_
private

◆ cs_

CommentStyle::Enum nim_cpp_wrapper_util::Json::BuiltStyledStreamWriter::cs_
private

◆ emitUTF8_

bool nim_cpp_wrapper_util::Json::BuiltStyledStreamWriter::emitUTF8_
private

◆ endingLineFeedSymbol_

String nim_cpp_wrapper_util::Json::BuiltStyledStreamWriter::endingLineFeedSymbol_
private

◆ indentation_

String nim_cpp_wrapper_util::Json::BuiltStyledStreamWriter::indentation_
private

◆ indented_

bool nim_cpp_wrapper_util::Json::BuiltStyledStreamWriter::indented_
private

◆ indentString_

String nim_cpp_wrapper_util::Json::BuiltStyledStreamWriter::indentString_
private

◆ nullSymbol_

String nim_cpp_wrapper_util::Json::BuiltStyledStreamWriter::nullSymbol_
private

◆ precision_

unsigned int nim_cpp_wrapper_util::Json::BuiltStyledStreamWriter::precision_
private

◆ precisionType_

PrecisionType nim_cpp_wrapper_util::Json::BuiltStyledStreamWriter::precisionType_
private

◆ rightMargin_

unsigned int nim_cpp_wrapper_util::Json::BuiltStyledStreamWriter::rightMargin_
private

◆ useSpecialFloats_

bool nim_cpp_wrapper_util::Json::BuiltStyledStreamWriter::useSpecialFloats_
private

该结构体的文档由以下文件生成: