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

RWXmlObjectInputStreamImp

Module:  XML Streams Module   Package:  XML Streams


RWXMLObjectStreamCommon RWXmlObjectInputStreamImpRWObjectInputStreamImp RWFilteredDataInputStreamImp

Local Index

Members

Header File

#include <rw/xmlstreams/RWXmlObjectInputStreamImp.h>

Description

The class RWXmlObjectInputStreamImp reads and restores objects encoded in XML from the supplied RWDataInputStream. Typically, the XML stream was originally created by the class RWXmlObjectOutputStreamImp, thereby ensuring symmetry of the output and subsequent input.

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.

RWXmlObjectInputStreamImp is the body class of a handle-body pattern. The corresponding handle class is RWObjectInputStream.

The syntax of the XML formatting parsed 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 getChar(char& value);
virtual void getCharacter(char& value);
virtual void getDouble(double& value);
virtual void getFloat(float& value);
virtual void getInt(int& value);
virtual void getLong(long& value);
virtual void getLongLong(rwlonglong& value);
virtual void getLongDouble(long double& value);
virtual void getShort(short& value);
virtual void getSizeT(size_t& value);
virtual void getString(RWCString& str);
virtual void getUCharacter(RWUChar& value);
virtual void getUnsignedChar(unsigned char& value);
virtual void getUnsignedLongLong(rwulonglong& value);
virtual void getUnsignedShort(unsigned short& value);
virtual void getUnsignedInt(unsigned int& value);
virtual void getUnsignedLong(unsigned long& value);
virtual void getUString(RWBasicUString& str);
virtual void getWchar_t(wchar_t& value);
virtual void getWCharacter(wchar_t& value);
virtual void getWString(RWWString& str);  

Static Public Member Functions

static RWObjectInputStream 
make(RW_SL_IO_STD(istream)& source, bool escape = true);
static RWObjectInputStream
make(RWDataInputStream& source, bool escape = true);
static RWObjectInputStream
make(RW_SL_IO_STD(istream)& source,
  RW_SL_IO_STD(ios)*& formatter, bool escape = true);

Protected Constructors

RWXmlObjectInputStreamImp(RW_SL_IO_STD(istream)& sourceStream, bool escape);
RWXmlObjectInputStreamImp(RWDataInputStream& sourceStream, bool escape);
RWXmlObjectInputStreamImp(RW_SL_IO_STD(istream)& sourceStream, 
RW_SL_IO_STD(ios)*& formatter,
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.