Inherits FilteredOutputStreamImp.
|
| RWTParsedTransformOutputStreamImp (const OutputStream &sinkStream, Transform transform) |
|
| RWTParsedTransformOutputStreamImp (const OutputStream &sinkStream, Transform transform, element_type *buffer, RWSize bufSize) |
|
| RWTParsedTransformOutputStreamImp (const OutputStream &sinkStream, Transform transform, RWSize bufSize) |
|
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, RWXmlStreamElement &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) |
|
template<class OutputStream, class FilteredOutputStreamImp, class Transform, class Traits>
class RWTParsedTransformOutputStreamImp< OutputStream, FilteredOutputStreamImp, Transform, Traits >
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
template <class OutputStream, class FilteredOutputStreamImp,
class Transform, class Traits>
: public FilteredOutputStreamImp {
}
template<class OutputStream , class FilteredOutputStreamImp , class Transform , class Traits >
Initializes the reference to the output stream used as the sink of elements, as well as the internal buffer, whose capacity is set to RW_STREAM_BUFFER_SIZE, defined as 512
bytes.
The parameter sinkStream is the output stream that serves as the sink of elements.
The parameter transform is the transformation object and must provide a public interface of transform(RWXmlStreamElement&).
template<class OutputStream , class FilteredOutputStreamImp , class Transform , class Traits >
Initializes the reference to the output stream used as the sink of elements, and the internal buffer capacity, which is set to bufSize.
sinkStream is the output stream that serves as the sink of elements.
transform is the transformation object and must provide a public interface of transform(RWXmlStreamElement&).
bufSize the buffer capacity in number of elements
template<class OutputStream , class FilteredOutputStreamImp , class Transform , class Traits >
Initializes the reference to the output stream used as the sink of elements, and the internal buffer, which is initialized using a pre-allocated element's array of size bufSize.
The parameter sinkStream is the output stream that serves as the sink of elements.
The parameter transform is the transformation object and must provide a public interface of transform(RWXmlStreamElement&).
The parameter buffer a pre-allocated buffer of size bufSize to be used internally by the constructed RWTParsedTransformOutputStreamImp object
The parameter bufSize is the buffer capacity in number of elements.
template<class OutputStream , class FilteredOutputStreamImp , class Transform , class Traits >
static OutputStream RWTParsedTransformOutputStreamImp< OutputStream, FilteredOutputStreamImp, Transform, Traits >::make |
( |
const OutputStream & | sinkStream, |
|
|
Transform | transform ) |
|
inlinestatic |
Constructs an RWTParsedTransformOutputStreamImp instance that uses sinkStream as its sink of elements, and returns a handle to it. The internal buffer is initialized to be of size RW_STREAM_BUFFER_SIZE, which is defined as 512
bytes. The buffer grows as needed to contain the entire XML document.
The parameter sinkStream is the output stream that serves as the sink of elements.
The parameter transform is the transformation object and must provide a public interface of transform(RWXmlStreamElement&).
template<class OutputStream , class FilteredOutputStreamImp , class Transform , class Traits >
Constructs an RWTParsedTransformOutputStreamImp instance that uses sinkStream as its sink of elements, and returns a handle to it. The internal buffer is initialized using a pre-allocated element's array of size bufSize. The buffer grows as needed to contain the entire XML document.
The parameter sinkStream is the output stream that serves as the sink of elements.
The parameter transform is the transformation object and must provide a public interface of transform(RWXmlStreamElement&).
The parameter buffer is a pre-allocated buffer of size bufSize to be used internally by the constructed RWTParsedTransformOutputStreamImp object.
The parameter bufSize is the buffer capacity in number of elements
template<class OutputStream , class FilteredOutputStreamImp , class Transform , class Traits >
Constructs an RWTParsedTransformOutputStreamImp instance that uses sinkStream as its sink of elements, and returns a handle to it. The internal buffer is initialized to be of size bufSize. The buffer grows as needed to contain the entire XML document.
The parameter sinkStream is the output stream that serves as the sink of elements.
The parameter transform is the transformation object and must provide a public interface of transform(RWXmlStreamElement&).
The parameter bufSize the buffer capacity in number of elements
template<class OutputStream , class FilteredOutputStreamImp , class Transform , class Traits >
Sets the buffer's pointers. Assigns the first parameter value to pbeg_
and pnext_
, and the second parameter value to pend_
. These data members represent the beginning of the buffer array, the current position in the array, and the end of the array.