Unicorn XML Toolkit
Version 1.50.00

Namespace Sax
Class CXmlFilter

class CXmlFilter: virtual public CXmlReader {
public:
    CXmlFilter();
    virtual ~CXmlFilter();
public:
    virtual void SetParent(CXmlReader *pParent) = 0;
    virtual CXmlReader *GetParent() = 0;
    };

The abstract interface to XML filters.

An XML filter is like an XML reader, except that it obtains its events from another XML reader rather than a primary source like an XML document or database. Filters can modify a stream of events as they pass on to the final application.

The CXmlFilterImpl helper class provides a convenient base for creating SAX2 filters, by passing on all CEntityResolver , CDtdHandler , CContentHandler and CErrorHandler events automatically.

Since:
1.00.00
Version:
1.50.00
Author:
C++ interfaces by Alexey Gokhberg; based on the original SAX2 specification by David Megginson
See Also:
CXmlReader
Constructor/Destructor Summary
CXmlFilter ();
����������Constructs the XML filter.
~CXmlFilter ();
����������Destroys the XML filter.

Function Summary
void SetParent (CXmlReader *pParent);
����������Sets the parent reader.
CXmlReader�* GetParent ();
����������This method allows the application to query the parent reader (which may be another filter). It is generally a bad idea to perform any operations on the parent reader directly: they should all pass through this filter.

Constructor/Destructor Detail

CXmlFilter

CXmlFilter();

Constructs the XML filter.

~CXmlFilter

virtual ~CXmlFilter();

Destroys the XML filter.

Function Detail

SetParent

virtual void SetParent(CXmlReader *pParent) = 0;

Sets the parent reader.

This method allows the application to link the filter to a parent reader (which may be another filter). The argument may not be NULL .

Parameters:
pParent - the parent reader

GetParent

virtual CXmlReader *GetParent() = 0;

This method allows the application to query the parent reader (which may be another filter). It is generally a bad idea to perform any operations on the parent reader directly: they should all pass through this filter.

Returns:
the parent reader, or NULL if none has been set

Unicorn XML Toolkit
Version 1.50.00


This document was created using Unicorn DOC++.

Copyright 1999-2001 Unicorn Enterprises SA.
All Rights Reserved.