LLSDNotationFormatter Class Reference

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

#include <llsdserialize.h>

Inheritance diagram for LLSDNotationFormatter:

Inheritance graph
[legend]
Collaboration diagram for LLSDNotationFormatter:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLSDNotationFormatter ()
 Constructor.
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.

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.

Definition at line 453 of file llsdserialize.h.


Constructor & Destructor Documentation

LLSDNotationFormatter::~LLSDNotationFormatter (  )  [protected, virtual]

Destructor.

Definition at line 1233 of file llsdserialize.cpp.

LLSDNotationFormatter::LLSDNotationFormatter (  ) 

Constructor.

LLSDNotationFormatter

Definition at line 1228 of file llsdserialize.cpp.


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.

Definition at line 1237 of file llsdserialize.cpp.

References serialize_string().

Referenced by LLFilterXMLRPCResponse2LLSD::process_impl(), and stream_out().

Here is the call graph for this function:

Here is the caller graph for this function:

S32 LLSDNotationFormatter::format ( const LLSD data,
std::ostream &  ostr,
U32  options = LLSDFormatter::OPTIONS_NONE 
) const [virtual]


The documentation for this class was generated from the following files:

Generated on Fri May 16 09:03:38 2008 for SecondLife by  doxygen 1.5.5