LLSDSerialize Class Reference

Serializer / deserializer for the various LLSD formats. More...

#include <llsdserialize.h>

List of all members.

Public Types

enum  ELLSD_Serialize { LLSD_BINARY, LLSD_XML }
enum  { SIZE_UNLIMITED = -1 }
 anonymouse enumeration for useful max_bytes constants. More...

Static Public Member Functions

static void serialize (const LLSD &sd, std::ostream &str, ELLSD_Serialize, U32 options=LLSDFormatter::OPTIONS_NONE)
static bool deserialize (LLSD &sd, std::istream &str, S32 max_bytes)
static S32 toNotation (const LLSD &sd, std::ostream &str)
static S32 fromNotation (LLSD &sd, std::istream &str, S32 max_bytes)
static LLSD fromNotation (std::istream &str, S32 max_bytes)
static S32 toXML (const LLSD &sd, std::ostream &str)
static S32 toPrettyXML (const LLSD &sd, std::ostream &str)
static S32 fromXML (LLSD &sd, std::istream &str)
static S32 toBinary (const LLSD &sd, std::ostream &str)
static S32 fromBinary (LLSD &sd, std::istream &str, S32 max_bytes)
static LLSD fromBinary (std::istream &str, S32 max_bytes)


Detailed Description

Serializer / deserializer for the various LLSD formats.

Definition at line 651 of file llsdserialize.h.


Member Enumeration Documentation

Enumerator:
LLSD_BINARY 
LLSD_XML 

Definition at line 654 of file llsdserialize.h.

anonymous enum

anonymouse enumeration for useful max_bytes constants.

Enumerator:
SIZE_UNLIMITED 

Definition at line 662 of file llsdserialize.h.


Member Function Documentation

void LLSDSerialize::serialize ( const LLSD sd,
std::ostream &  str,
ELLSD_Serialize  type,
U32  options = LLSDFormatter::OPTIONS_NONE 
) [static]

LLSDSerialize

Definition at line 62 of file llsdserialize.cpp.

References llendl, LLSD_BINARY, LLSD_BINARY_HEADER(), LLSD_XML, LLSD_XML_HEADER(), llwarns, LLPointer< Type >::notNull(), and NULL.

Referenced by send_group_notice().

Here is the call graph for this function:

Here is the caller graph for this function:

bool LLSDSerialize::deserialize ( LLSD sd,
std::istream &  str,
S32  max_bytes 
) [static]

Examine a stream, and parse 1 sd object out based on contents.

Parameters:
sd [out] The data found on the stream
str The incoming stream
max_bytes the maximum number of bytes to parse
Returns:
Returns true if the stream appears to contain valid data

Definition at line 89 of file llsdserialize.cpp.

References i, LEGACY_NON_HEADER, llendl, LLSD_BINARY_HEADER(), LLSD_XML_HEADER(), llwarns, MAX_HDR_LEN, LLPointer< Type >::notNull(), NULL, p, and LLSDXMLParser::parsePart().

Here is the call graph for this function:

static S32 LLSDSerialize::toNotation ( const LLSD sd,
std::ostream &  str 
) [inline, static]

Definition at line 689 of file llsdserialize.h.

References LLSDFormatter::OPTIONS_NONE.

Referenced by LLSDRPCServer::buildResponse(), LLSDRPCClient::call(), and tut::TestLLSDCrossCompatible::ensureBinaryAndNotation().

Here is the caller graph for this function:

static S32 LLSDSerialize::fromNotation ( LLSD sd,
std::istream &  str,
S32  max_bytes 
) [inline, static]

static LLSD LLSDSerialize::fromNotation ( std::istream &  str,
S32  max_bytes 
) [inline, static]

Definition at line 699 of file llsdserialize.h.

References p, and tut::sd().

Here is the call graph for this function:

static S32 LLSDSerialize::toXML ( const LLSD sd,
std::ostream &  str 
) [inline, static]

Definition at line 710 of file llsdserialize.h.

References LLSDFormatter::OPTIONS_NONE.

Referenced by tut::TestLLSDCrossCompatible::ensureBinaryAndXML(), LLCurlRequest::post(), LLURLHistory::saveFile(), and upload_new_resource().

Here is the caller graph for this function:

static S32 LLSDSerialize::toPrettyXML ( const LLSD sd,
std::ostream &  str 
) [inline, static]

static S32 LLSDSerialize::fromXML ( LLSD sd,
std::istream &  str 
) [inline, static]

static S32 LLSDSerialize::toBinary ( const LLSD sd,
std::ostream &  str 
) [inline, static]

Definition at line 732 of file llsdserialize.h.

References LLSDFormatter::OPTIONS_NONE.

Referenced by tut::TestLLSDCrossCompatible::ensureBinaryAndNotation(), and tut::TestLLSDCrossCompatible::ensureBinaryAndXML().

Here is the caller graph for this function:

static S32 LLSDSerialize::fromBinary ( LLSD sd,
std::istream &  str,
S32  max_bytes 
) [inline, static]

Definition at line 737 of file llsdserialize.h.

References p.

Referenced by tut::TestLLSDCrossCompatible::ensureBinaryAndNotation(), and tut::TestLLSDCrossCompatible::ensureBinaryAndXML().

Here is the caller graph for this function:

static LLSD LLSDSerialize::fromBinary ( std::istream &  str,
S32  max_bytes 
) [inline, static]

Definition at line 742 of file llsdserialize.h.

References p, and tut::sd().

Here is the call graph for this function:


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

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