Public Member Functions
Json::BuiltStyledStreamWriter Struct Reference
Inheritance diagram for Json::BuiltStyledStreamWriter:
Json::StreamWriter Json::StreamWriter

Public Member Functions

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

Additional Inherited Members

- Protected Attributes inherited from Json::StreamWriter
OStreamsout_
 

Constructor & Destructor Documentation

Json::BuiltStyledStreamWriter::BuiltStyledStreamWriter ( String  indentation,
CommentStyle::Enum  cs,
String  colonSymbol,
String  nullSymbol,
String  endingLineFeedSymbol,
bool  useSpecialFloats,
unsigned int  precision,
PrecisionType  precisionType 
)
Json::BuiltStyledStreamWriter::BuiltStyledStreamWriter ( String  indentation,
CommentStyle::Enum  cs,
String  colonSymbol,
String  nullSymbol,
String  endingLineFeedSymbol,
bool  useSpecialFloats,
unsigned int  precision,
PrecisionType  precisionType 
)

Member Function Documentation

int 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.

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.

int 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.

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.


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