LLSDSerialize Class Reference

#include <llsdserialize.h>

List of all members.

Public Types

 LLSD_BINARY
 LLSD_XML
enum  ELLSD_Serialize { LLSD_BINARY, LLSD_XML }

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)
static S32 toNotation (const LLSD &sd, std::ostream &str)
static S32 fromNotation (LLSD &sd, std::istream &str)
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)

Static Private Attributes

static const char * LLSDBinaryHeader = "LLSD/Binary"
static const char * LLSDXMLHeader = "LLSD/XML"


Detailed Description

/ deserializer for the various LLSD formats

Definition at line 549 of file llsdserialize.h.


Member Enumeration Documentation

enum LLSDSerialize::ELLSD_Serialize

Enumerator:
LLSD_BINARY 
LLSD_XML 

Definition at line 552 of file llsdserialize.h.


Member Function Documentation

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

Definition at line 97 of file llsdserialize.cpp.

References end, i, LEGACY_NON_HEADER, llendl, LLSDBinaryHeader, LLSDXMLHeader, llwarns, MAX_HDR_LEN, NULL, p, tut::sd(), start, and x.

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

Definition at line 605 of file llsdserialize.h.

References p, and tut::sd().

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

Definition at line 572 of file llsdserialize.h.

References p, and tut::sd().

Referenced by LLFloaterSnapshot::Impl::onCommitResolution(), LLSDRPCServer::process_impl(), LLSDRPCClient::process_impl(), LLFilterSD2XMLRPCRequest::process_impl(), and LLFilterSD2XMLRPCResponse::process_impl().

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

Definition at line 591 of file llsdserialize.h.

References p, and tut::sd().

Referenced by LLHTTPBuffer::asLLSD(), LLHTTPClient::Responder::completedRaw(), LLViewerImageList::doPrefetchImages(), LLInventoryView::init(), LLMessageConfigFile::loadFile(), LLLiveAppConfig::loadFile(), and LLServiceBuilder::loadServiceDefinitionsFromFile().

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

Definition at line 70 of file llsdserialize.cpp.

References f, llendl, LLSD_BINARY, LLSD_XML, LLSDBinaryHeader, LLSDXMLHeader, llwarns, NULL, and tut::sd().

Referenced by send_group_notice().

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

Definition at line 600 of file llsdserialize.h.

References f, LLSDFormatter::OPTIONS_NONE, and tut::sd().

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

Definition at line 567 of file llsdserialize.h.

References f, LLSDFormatter::OPTIONS_NONE, and tut::sd().

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

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

Definition at line 586 of file llsdserialize.h.

References f, LLSDFormatter::OPTIONS_PRETTY, and tut::sd().

Referenced by LLViewerImageList::shutdown(), tut::LLMessageConfigTestData::writeConfigFile(), and LLInventoryView::~LLInventoryView().

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

Definition at line 581 of file llsdserialize.h.

References f, LLSDFormatter::OPTIONS_NONE, and tut::sd().

Referenced by upload_new_resource().


Member Data Documentation

const char * LLSDSerialize::LLSDBinaryHeader = "LLSD/Binary" [static, private]

Definition at line 611 of file llsdserialize.h.

Referenced by deserialize(), and serialize().

const char * LLSDSerialize::LLSDXMLHeader = "LLSD/XML" [static, private]

Definition at line 612 of file llsdserialize.h.

Referenced by deserialize(), and serialize().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:45 2010 for Second Life Viewer by  doxygen 1.4.7