Made to Order Software Corporation Logo

LLChatLib: LLSDNotationFormatter Class Reference

LLSDNotationFormatter Class Reference

Formatter which outputs the original notation format for LLSD. More...

#include <llsdserialize.h>

Inheritance diagram for LLSDNotationFormatter:
Collaboration diagram for LLSDNotationFormatter:

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.

 LLSDNotationFormatter ()
 Constructor.

Static Public Member Functions

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

Protected Member Functions

virtual ~LLSDNotationFormatter ()
 Destructor.


Detailed Description

Formatter which outputs the original notation format for LLSD.


Constructor & Destructor Documentation

LLSDNotationFormatter::LLSDNotationFormatter (  ) 

Constructor.

LLSDNotationFormatter


Member Function Documentation

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

Helper static method to return a notation escaped string.

This method will return the notation escaped string, but not the surrounding serialization identifiers such as a double or single quote. It will be up to the caller to embed those as appropriate.

Parameters:
in The raw, unescaped string.
Returns:
Returns an escaped string appropriate for serialization.

Here is the call graph for this function:

S32 LLSDNotationFormatter::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:


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