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)
 
virtual int write (Value const &root, std::ostream *sout)
 
- Public Member Functions inherited from Json::StreamWriter
 StreamWriter ()
 
virtual ~StreamWriter ()
 

Private Types

typedef std::vector< std::string > ChildValues
 

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_
 
int rightMargin_
 

Additional Inherited Members

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

Detailed Description

Definition at line 4743 of file jsoncpp.cpp.

Member Typedef Documentation

typedef std::vector<std::string> Json::BuiltStyledStreamWriter::ChildValues
private

Definition at line 4765 of file jsoncpp.cpp.

Constructor & Destructor Documentation

Json::BuiltStyledStreamWriter::BuiltStyledStreamWriter ( std::string const &  indentation,
CommentStyle::Enum  cs,
std::string const &  colonSymbol,
std::string const &  nullSymbol,
std::string const &  endingLineFeedSymbol 
)

Definition at line 4778 of file jsoncpp.cpp.

Member Function Documentation

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

Definition at line 5006 of file jsoncpp.cpp.

void Json::BuiltStyledStreamWriter::indent ( )
private

Definition at line 4968 of file jsoncpp.cpp.

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

Definition at line 4915 of file jsoncpp.cpp.

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

Definition at line 4943 of file jsoncpp.cpp.

void Json::BuiltStyledStreamWriter::unindent ( )
private

Definition at line 4970 of file jsoncpp.cpp.

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

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 4794 of file jsoncpp.cpp.

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

Definition at line 4868 of file jsoncpp.cpp.

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

Definition at line 4994 of file jsoncpp.cpp.

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

Definition at line 4975 of file jsoncpp.cpp.

void Json::BuiltStyledStreamWriter::writeIndent ( )
private

Definition at line 4950 of file jsoncpp.cpp.

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

Definition at line 4809 of file jsoncpp.cpp.

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

Definition at line 4962 of file jsoncpp.cpp.

Member Data Documentation

bool Json::BuiltStyledStreamWriter::addChildValues_
private

Definition at line 4775 of file jsoncpp.cpp.

ChildValues Json::BuiltStyledStreamWriter::childValues_
private

Definition at line 4767 of file jsoncpp.cpp.

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

Definition at line 4772 of file jsoncpp.cpp.

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

Definition at line 4771 of file jsoncpp.cpp.

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

Definition at line 4774 of file jsoncpp.cpp.

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

Definition at line 4770 of file jsoncpp.cpp.

bool Json::BuiltStyledStreamWriter::indented_
private

Definition at line 4776 of file jsoncpp.cpp.

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

Definition at line 4768 of file jsoncpp.cpp.

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

Definition at line 4773 of file jsoncpp.cpp.

int Json::BuiltStyledStreamWriter::rightMargin_
private

Definition at line 4769 of file jsoncpp.cpp.


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


mission_planning
Author(s): ivan
autogenerated on Thu Nov 12 2015 19:08:20