Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
XML Streams Module Reference Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

RWXmlObjectOutputStreamImp

Module:  XML Streams   Package:  XML Streams


RWXMLObjectStreamCommon RWXmlObjectOutputStreamImpRWObjectOutputStreamImp RWFilteredDataOutputStreamImp

Local Index

Members

Header File

#include <rw/xmlstreams/RWXmlObjectOutputStreamImp.h>

Description

The class RWXmlObjectOutputStreamImp serializes one or more objects as an XML-formatted data stream and passes the stream to a supplied RWDataOutputStream.

The XML Streams Module integrates with the general Rogue Wave streams architecture defined by the streams and serialization packages of the Advanced Tools Module of SourcePro Core. This architecture allows an XML stream to be written out and read in using a wide variety of streaming configurations. For more information specific to the XML Streams Module, see the XML Streams Module User's Guide. For information on the general architecture, see the Advanced Tools Module User's Guide.

RWXmlObjectOutputStreamImp is the body class of a handle-body pattern. The corresponding handle class is RWObjectOutputStream.

The syntax of the XML formatting generated by this class is defined by the XML schema xmlstreams.xsd. This schema is located in buildspace\rw\xmlstreams.

Example

Public Member Functions

virtual void putChar(char value);
virtual void putCharacter(char value);
virtual void putDouble(double value);
virtual void putFloat(float value);
virtual void putInt(int value);
virtual void putLong(long value);
virtual void putLongLong(rwlonglong value);
virtual void putLongDouble(long double value);
virtual void putShort(short value);
virtual void putSignedChar(signed char value);
virtual void putSizeT(size_t value);
virtual void putUCharacter(RWUChar value);
virtual void putUnsignedChar(unsigned char value);
virtual void putUnsignedShort(unsigned short value);
virtual void putUnsignedInt(unsigned int value);
virtual void putUnsignedLong(unsigned long value);
virtual void putUnsignedLongLong(rwulonglong value);
virtual void putUString(const RWUString& value);
virtual void putWchar_t(wchar_t value);
virtual void putWString(const RWWString& value); 
virtual void putWCharacter(wchar_t value);
virtual void          
writeObjectName();
virtual void          
setNameForNextObject(const RWCString& str);

Static Public Member Functions

static RWObjectOutputStream 
make(RW_SL_IO_STD(ostream)& sink,
const RWCString& rootElementType=nestedObjectTag,
bool escape = true);
static RWObjectOutputStream 
make(RWDataOutputStream& sink,
const RWCString& rootElementType=nestedObjectTag,
bool escape = true);
static RWObjectOutputStream
make(RW_SL_IO_STD(ostream)& sink,
    RW_SL_IO_STD(ios)*& formatter, 
const RWCString& rootElementType=nestedObjectTag,
bool escape = true);

Protected Constructors

RWXmlObjectOutputStreamImp(RW_SL_IO_STD(ostream)& ostr, const RWCString& rootElementType, bool escape);
RWXmlObjectOutputStreamImp(RWDataOutputStream& ostr,
const RWCString& rootElementType, bool escape);
RWXmlObjectOutputStreamImp(RW_SL_IO_STD(ostream)& ostr,
    RW_SL_IO_STD(ios)*& formatter, 
const RWCString& rootElementType, bool escape);


Previous fileTop of DocumentContentsIndex pageNext file

© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.