Made to Order Software Corporation Logo

LLChatLib: LLSDXMLFormatter Class Reference

LLSDXMLFormatter Class Reference

Formatter which outputs the LLSD as XML. More...

#include <llsdserialize.h>

Inheritance diagram for LLSDXMLFormatter:
Collaboration diagram for LLSDXMLFormatter:

List of all members.

Public Member Functions

virtual S32 format (const LLSD &data, std::ostream &ostr, U32 options=LLSDFormatter::OPTIONS_NONE) const
 Call this method to format an LLSD to a stream.

 LLSDXMLFormatter ()
 Constructor.

Static Public Member Functions

static std::string escapeString (const std::string &in)
 Helper static method to return an xml escaped string.

Protected Member Functions

S32 format_impl (const LLSD &data, std::ostream &ostr, U32 options, U32 level) const
 Implementation to format the data. This is called recursively.

virtual ~LLSDXMLFormatter ()
 Destructor.


Detailed Description

Formatter which outputs the LLSD as XML.


Constructor & Destructor Documentation

LLSDXMLFormatter::LLSDXMLFormatter (  ) 

Constructor.

LLSDXMLFormatter


Member Function Documentation

std::string LLSDXMLFormatter::escapeString ( const std::string &  in  )  [static]

Helper static method to return an xml escaped string.

Parameters:
in A valid UTF-8 string.
Returns:
Returns an escaped string appropriate for serialization.
S32 LLSDXMLFormatter::format ( const LLSD data,
std::ostream &  ostr,
U32  options = LLSDFormatter::OPTIONS_NONE 
) const [virtual]

Call this method to format an LLSD to a stream.

Parameters:
data The data to write.
ostr The destination stream for the data.
Returns:
Returns The number of LLSD objects fomatted out

Implements LLSDFormatter.

Here is the call graph for this function:

S32 LLSDXMLFormatter::format_impl ( const LLSD data,
std::ostream &  ostr,
U32  options,
U32  level 
) const [protected]

Implementation to format the data. This is called recursively.

Parameters:
data The data to write.
ostr The destination stream for the data.
Returns:
Returns The number of LLSD objects fomatted out

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Thu Sep 23 17:18:46 2010 for LLChatLib by  doxygen 1.6.3