Public Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
Json::BuiltStyledStreamWriter Struct Reference
Inheritance diagram for Json::BuiltStyledStreamWriter:
Inheritance graph
[legend]

Public Member Functions

 BuiltStyledStreamWriter (std::string const &indentation, CommentStyle::Enum cs, std::string const &colonSymbol, std::string const &nullSymbol, std::string const &endingLineFeedSymbol, bool useSpecialFloats, unsigned int precision)
 
int write (Value const &root, std::ostream *sout) override
 
- Public Member Functions inherited from Json::StreamWriter
 StreamWriter ()
 
virtual ~StreamWriter ()
 

Private Types

typedef std::vector< std::stringChildValues
 

Private Member Functions

void indent ()
 
bool isMultineArray (Value const &value)
 
void pushValue (std::string const &value)
 
void unindent ()
 
void writeArrayValue (Value const &value)
 
void writeCommentAfterValueOnSameLine (Value const &root)
 
void writeCommentBeforeValue (Value const &root)
 
void writeIndent ()
 
void writeValue (Value const &value)
 
void writeWithIndent (std::string const &value)
 

Static Private Member Functions

static bool hasCommentForValue (const Value &value)
 

Private Attributes

bool addChildValues_: 1
 
ChildValues childValues_
 
std::string colonSymbol_
 
CommentStyle::Enum cs_
 
std::string endingLineFeedSymbol_
 
std::string indentation_
 
bool indented_: 1
 
std::string indentString_
 
std::string nullSymbol_
 
unsigned int precision_
 
int rightMargin_
 
bool useSpecialFloats_: 1
 

Additional Inherited Members

- Protected Attributes inherited from Json::StreamWriter
std::ostream * sout_
 

Detailed Description

Definition at line 4799 of file jsoncpp.cpp.

Member Typedef Documentation

◆ ChildValues

Definition at line 4823 of file jsoncpp.cpp.

Constructor & Destructor Documentation

◆ BuiltStyledStreamWriter()

Json::BuiltStyledStreamWriter::BuiltStyledStreamWriter ( std::string const &  indentation,
CommentStyle::Enum  cs,
std::string const &  colonSymbol,
std::string const &  nullSymbol,
std::string const &  endingLineFeedSymbol,
bool  useSpecialFloats,
unsigned int  precision 
)

Definition at line 4838 of file jsoncpp.cpp.

Member Function Documentation

◆ hasCommentForValue()

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

Definition at line 5069 of file jsoncpp.cpp.

◆ indent()

void Json::BuiltStyledStreamWriter::indent ( )
private

Definition at line 5031 of file jsoncpp.cpp.

◆ isMultineArray()

bool Json::BuiltStyledStreamWriter::isMultineArray ( Value const &  value)
private

Definition at line 4979 of file jsoncpp.cpp.

◆ pushValue()

void Json::BuiltStyledStreamWriter::pushValue ( std::string const &  value)
private

Definition at line 5006 of file jsoncpp.cpp.

◆ unindent()

void Json::BuiltStyledStreamWriter::unindent ( )
private

Definition at line 5033 of file jsoncpp.cpp.

◆ write()

int Json::BuiltStyledStreamWriter::write ( Value const &  root,
std::ostream *  sout 
)
overridevirtual

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

Precondition
sout != NULL
Returns
zero on success (For now, we always return zero, so check the stream instead.)
Exceptions
std::exceptionpossibly, depending on configuration

Implements Json::StreamWriter.

Definition at line 4858 of file jsoncpp.cpp.

◆ writeArrayValue()

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

Definition at line 4932 of file jsoncpp.cpp.

◆ writeCommentAfterValueOnSameLine()

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

Definition at line 5057 of file jsoncpp.cpp.

◆ writeCommentBeforeValue()

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

Definition at line 5038 of file jsoncpp.cpp.

◆ writeIndent()

void Json::BuiltStyledStreamWriter::writeIndent ( )
private

Definition at line 5013 of file jsoncpp.cpp.

◆ writeValue()

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

Definition at line 4873 of file jsoncpp.cpp.

◆ writeWithIndent()

void Json::BuiltStyledStreamWriter::writeWithIndent ( std::string const &  value)
private

Definition at line 5025 of file jsoncpp.cpp.

Member Data Documentation

◆ addChildValues_

bool Json::BuiltStyledStreamWriter::addChildValues_
private

Definition at line 4833 of file jsoncpp.cpp.

◆ childValues_

ChildValues Json::BuiltStyledStreamWriter::childValues_
private

Definition at line 4825 of file jsoncpp.cpp.

◆ colonSymbol_

std::string Json::BuiltStyledStreamWriter::colonSymbol_
private

Definition at line 4830 of file jsoncpp.cpp.

◆ cs_

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

Definition at line 4829 of file jsoncpp.cpp.

◆ endingLineFeedSymbol_

std::string Json::BuiltStyledStreamWriter::endingLineFeedSymbol_
private

Definition at line 4832 of file jsoncpp.cpp.

◆ indentation_

std::string Json::BuiltStyledStreamWriter::indentation_
private

Definition at line 4828 of file jsoncpp.cpp.

◆ indented_

bool Json::BuiltStyledStreamWriter::indented_
private

Definition at line 4834 of file jsoncpp.cpp.

◆ indentString_

std::string Json::BuiltStyledStreamWriter::indentString_
private

Definition at line 4826 of file jsoncpp.cpp.

◆ nullSymbol_

std::string Json::BuiltStyledStreamWriter::nullSymbol_
private

Definition at line 4831 of file jsoncpp.cpp.

◆ precision_

unsigned int Json::BuiltStyledStreamWriter::precision_
private

Definition at line 4836 of file jsoncpp.cpp.

◆ rightMargin_

int Json::BuiltStyledStreamWriter::rightMargin_
private

Definition at line 4827 of file jsoncpp.cpp.

◆ useSpecialFloats_

bool Json::BuiltStyledStreamWriter::useSpecialFloats_
private

Definition at line 4835 of file jsoncpp.cpp.


The documentation for this struct was generated from the following file:


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:10