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

RWTParsedTransformOutputStreamImp

Module:  XML Streams   Package:  XML Streams


RWTParsedTransformOutputStreamImp FilteredOutputStreamImp

Local Index

Members

Header File

#include <rw/xmlstreams/RWTParsedTransformOutputStreamImp.h>

Description

The class RWTParsedTransformOutputStreamImp implements a buffer that can be used with any kind of output stream. The size of the buffer is specified as a parameter to the static make() function that is used to create it. If the buffer as initialized is not large enough to contain the entire XML document, it grows as needed to be able to do so. It is more efficient, though, to allocate a buffer of sufficient size initially.

RWTParsedTransformOutputStreamImp is a class template that is derived from one of its own template parameters.

The class is defined as

Public Typedefs

typedef OutputStream
RWOutputStream_type;

typedef typename OutputStream::element_type
element_type;

typedef RWCString
string_type;

Static Public Member Functions

static OutputStream
make(const OutputStream& sinkStream, Transform transform);
static OutputStream
make(const OutputStream& sinkStream, Transform transform,
     RWSize bufSize);
static OutputStream
make(const OutputStream& sinkStream, Transform transform,
     element_type* buffer, RWSize bufSize);

Public Destructor

virtual
~RWTParsedTransformOutputStreamImp();

Public Member Functions

virtual void
write(element_type value);
virtual void
write(const element_type* array, RWSize numElements);
virtual void
close();
virtual void
flush();

Protected Constructors

RWTParsedTransformOutputStreamImp(const OutputStream& sinkStream,
                                 Transform transform);
RWTParsedTransformOutputStreamImp(const OutputStream& sinkStream,
                        Transform transform, RWSize bufSize);
RWTParsedTransformOutputStreamImp(const OutputStream& sinkStream, 
   Transform transform, element_type* buffer, RWSize bufSize);

Protected Member Functions

element_type*
epptr() const;
void
freeBuffer();
element_type*
pbase() const;
void
pbump(RWSize n);
element_type*
pptr() const;
element_type*
readAttribute(element_type* ptr, string_type& token);
element_type*
readAttributes(element_type* ptr, string_type& element);
element_type*
readAttributeValue(element_type* ptr, string_type& token);
RWXmlStreamElement
readNextElement(element_type* ptr, element_type*& next,
const RWXmlStreamElement& parent);
element_type*
readToClose(element_type* ptr, string_type& token);
element_type*
readToken(element_type* ptr, string_type& token);
element_type*
readValue(element_type* ptr,
RWXmlStreamElement& element);
element_type*
readWholeName(element_type* ptr, string_type& token);
void
setBuffer(RWSize bufsize);
void
setp(element_type* pbeg_arg, element_type* pend_arg);


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.