DWFToolkit::DWFDuplicateAttributeFilter Class Reference
[DWF Package API]

#include "dwf/package/reader/DuplicateAttributeFilter.h"

List of all members.


Detailed Description

This is a plug-in filter for DWFXMLCallback implementations that removes duplicated element attributes in malformed XML streams.

Since:
7.0.1
Certain older versions of AutoCAD (e.g. 2002) are known to produce section descriptor documents with malformed XML, in particular, duplicating the xmlns:EPlot attribute. The DWFXMLCallback interface provides the setStreamFilter() method for hooking up a filter between the document source and the XML parser. This filter implementation detects and discards duplicate attributes.

Warning:
First, filtering slows the read/parse process considerably, testing shows anyhere from 9% - 31% over a small sample set, your mileage may vary.

Second, the algorthim was developed with the above mentioned problem in mind, as such, it may or may not really fix super bad XML, but then, it's not really supposed to...

Definition at line 61 of file DuplicateAttributeFilter.h.

Public Member Functions

_DWFTK_API DWFDuplicateAttributeFilter (DWFInputStream *pInputStream=NULL, bool bOwnStream=false) throw ()
virtual _DWFTK_API ~DWFDuplicateAttributeFilter () throw ()
virtual _DWFTK_API size_t available () const throw ( DWFException )
virtual _DWFTK_API size_t read (void *pBuffer, size_t nBytesToRead) throw ( DWFException )
virtual _DWFTK_API off_t seek (int eOrigin, off_t nOffset) throw ( DWFException )


Constructor & Destructor Documentation

_DWFTK_API DWFToolkit::DWFDuplicateAttributeFilter::DWFDuplicateAttributeFilter DWFInputStream pInputStream = NULL,
bool  bOwnStream = false
throw ()
 

Constructor

Parameters:
pInputStream An input stream from which to stream data. This object should be allocated with the DWFCORE_ALLOC_OBJECT macro if ownership will be transferred.
bOwnStream If true, this object will assume ownership of pInputStream and delete it as necessary using DWFCORE_FREE_OBJECT. If false, the caller retains ownership of pInputStream and is responsible for deleting it.
Exceptions:
None 

virtual _DWFTK_API DWFToolkit::DWFDuplicateAttributeFilter::~DWFDuplicateAttributeFilter  )  throw () [virtual]
 

Destructor

Exceptions:
None 


Member Function Documentation

virtual _DWFTK_API size_t DWFToolkit::DWFDuplicateAttributeFilter::available  )  const throw ( DWFException ) [virtual]
 

virtual _DWFTK_API size_t DWFToolkit::DWFDuplicateAttributeFilter::read void *  pBuffer,
size_t  nBytesToRead
throw ( DWFException ) [virtual]
 

virtual _DWFTK_API off_t DWFToolkit::DWFDuplicateAttributeFilter::seek int  eOrigin,
off_t  nOffset
throw ( DWFException ) [virtual]
 


The documentation for this class was generated from the following file:
Generated on Tue Jan 6 22:40:31 2009 for Autodesk DWF Toolkit by  doxygen 1.4.5