DWFToolkit::DWFXDWFDocumentSequenceReader Class Reference

#include "dwf/opc/reader/RelationshipContainerReader.h"

Inheritance diagram for DWFToolkit::DWFXDWFDocumentSequenceReader:

Inheritance graph
[legend]
Collaboration diagram for DWFToolkit::DWFXDWFDocumentSequenceReader:

Collaboration graph
[legend]
List of all members.

Detailed Description

This class implements the required XML parsing handlers to compose DWFX DWFDocumentSequence objects from the file.

Since:
7.4.0
This class contains the processing logic particular to the known versions of the DWFXDWFDocumentSequence. The algorithm is tuned specifically for this schema and is not intended to be generic.

Definition at line 59 of file DWFDocumentSequenceReader.h.

Public Types

typedef enum DWFToolkit::DWFXDWFDocumentSequenceReader::teProviderType teProviderType
enum  teProviderType { eProvideNone = 0x00, eProvideDocuments = 0x01, eProvideElements = 0xF0, eProvideAll = 0xFF }

Public Member Functions

_DWFTK_API DWFXDWFDocumentSequenceReader (unsigned int nProviderFlags=eProvideAll) throw ()
virtual _DWFTK_API ~DWFXDWFDocumentSequenceReader () throw ()
_DWFTK_API DWFXDWFDocumentSequenceReaderfilter () const throw ()
_DWFTK_API void setFilter (DWFXDWFDocumentSequenceReader *pFilter) throw ()
virtual _DWFTK_API DWFString provideDocumentURI (const DWFString &zDocumentURI) throw ()
_DWFTK_API void notifyStartElement (const char *zName, const char **ppAttributeList) throw ()
_DWFTK_API void notifyEndElement (const char *zName) throw ()
_DWFTK_API void notifyStartNamespace (const char *zPrefix, const char *zURI) throw ()
_DWFTK_API void notifyEndNamespace (const char *zPrefix) throw ()
_DWFTK_API void notifyCharacterData (const char *zCData, int nLength) throw ()

Protected Attributes

OPCXMLElementBuilder _oDefaultElementBuilder
OPCXMLElementBuilder_pElementBuilder


Member Typedef Documentation

typedef enum DWFToolkit::DWFXDWFDocumentSequenceReader::teProviderType DWFToolkit::DWFXDWFDocumentSequenceReader::teProviderType
 

These enumeration flags alter the behavior of the parser by restricting which elements are inflated into runtime objects. Generally these only prevent unwanted object creation (and thus memory allocations) but in some cases, additional data processing can be avoided.


Member Enumeration Documentation

enum DWFToolkit::DWFXDWFDocumentSequenceReader::teProviderType
 

These enumeration flags alter the behavior of the parser by restricting which elements are inflated into runtime objects. Generally these only prevent unwanted object creation (and thus memory allocations) but in some cases, additional data processing can be avoided.

Enumerator:
eProvideNone  Parse the document only (no data objects will be created; no callbacks will be invoked.)
eProvideDocuments  Invoke the provideDocument() callback.
eProvideElements  Equivalent to (eProvideRelationships)
eProvideAll  Equivalent to (eProvideElements)

Definition at line 70 of file DWFDocumentSequenceReader.h.


Constructor & Destructor Documentation

_DWFTK_API DWFToolkit::DWFXDWFDocumentSequenceReader::DWFXDWFDocumentSequenceReader unsigned int  nProviderFlags = eProvideAll  )  throw ()
 

Constructor

Parameters:
nProviderFlags A combination of teProviderType flags.
Exceptions:
None 

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

Destructor

Exceptions:
None 


Member Function Documentation

_DWFTK_API DWFXDWFDocumentSequenceReader* DWFToolkit::DWFXDWFDocumentSequenceReader::filter  )  const throw ()
 

Returns the parser filter, if applicable.

Returns:
The external filter to be applied to this parser. This pointer must be deleted by the caller with the DWFCORE_FREE_OBJECT macro.
Exceptions:
None 

_DWFTK_API void DWFToolkit::DWFXDWFDocumentSequenceReader::notifyCharacterData const char *  zCData,
int  nLength
throw ()
 

_DWFTK_API void DWFToolkit::DWFXDWFDocumentSequenceReader::notifyEndElement const char *  zName  )  throw ()
 

_DWFTK_API void DWFToolkit::DWFXDWFDocumentSequenceReader::notifyEndNamespace const char *  zPrefix  )  throw ()
 

_DWFTK_API void DWFToolkit::DWFXDWFDocumentSequenceReader::notifyStartElement const char *  zName,
const char **  ppAttributeList
throw ()
 

_DWFTK_API void DWFToolkit::DWFXDWFDocumentSequenceReader::notifyStartNamespace const char *  zPrefix,
const char *  zURI
throw ()
 

virtual _DWFTK_API DWFString DWFToolkit::DWFXDWFDocumentSequenceReader::provideDocumentURI const DWFString zDocumentURI  )  throw () [virtual]
 

Accepts URIs for documents in the document sequence.

Parameters:
zDocumentURI The document URI.
Returns:
The filtered document URI.
Exceptions:
None 

Reimplemented in DWFToolkit::DWFXDWFDocumentSequence.

_DWFTK_API void DWFToolkit::DWFXDWFDocumentSequenceReader::setFilter DWFXDWFDocumentSequenceReader pFilter  )  throw ()
 

Inserts a parser filter.

Parameters:
pFilter The filter to apply to this parser. This pointer is not ever deleted by this object. This pointer must be deleted by the caller with the DWFCORE_FREE_OBJECT macro.
Exceptions:
None 


Member Data Documentation

OPCXMLElementBuilder DWFToolkit::DWFXDWFDocumentSequenceReader::_oDefaultElementBuilder [protected]
 

Default building behavior and element object allocator for readers.

Definition at line 195 of file DWFDocumentSequenceReader.h.

OPCXMLElementBuilder* DWFToolkit::DWFXDWFDocumentSequenceReader::_pElementBuilder [protected]
 

This will point to the default builder initially. But implementation classes can alter this pointer as necessary but they should all use only this pointer to do the actual work.

Definition at line 202 of file DWFDocumentSequenceReader.h.


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