Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages | Examples

DWFToolkit::DWFManifest Class Reference
[DWF Package API]

#include "dwf/package/Manifest.h"

Inheritance diagram for DWFToolkit::DWFManifest:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

This class represents a fully parsed DWF package manifest document.
Since:
7.0.1.
Examples:

DWFGoogleDesktopCrawl/DWFCrawlHandler.cpp, ObjectDefinitionReader/ObjectDefinitionReader.cpp, SimpleEnumReader/SimpleEnumReader.cpp, SimpleW3DStreamProcessor/SimpleW3DStreamProcessor.cpp, and TimedXMLReader/TimedXMLReader.cpp.

Definition at line 52 of file Manifest.h.

Public Types

typedef DWFWCharKeySkipList<
DWFInterface * >::Iterator 
tInterfaceIterator
 This type defines the iterator for enumerating manifest interfaces.

Public Member Functions

_DWFTK_API DWFManifest (DWFPackageReader *pPackageReader) throw ()
_DWFTK_API DWFManifest (const DWFString &zObjectID) throw ()
virtual _DWFTK_API ~DWFManifest () throw ()
_DWFTK_API double version () const throw ()
_DWFTK_API const DWFStringobjectID () const throw ()
_DWFTK_API tInterfaceIteratorgetInterfaces () throw ()
_DWFTK_API DWFSectionfindSectionByName (const DWFString &zName) throw ()
_DWFTK_API SectionIteratorfindSectionsByType (const DWFString &zType) throw ()
_DWFTK_API SectionIteratorgetSections () throw ()
_DWFTK_API SectionIteratorgetGlobalSections () throw ()
_DWFTK_API double provideVersion (double nVersion) throw ()
_DWFTK_API const char * provideObjectID (const char *zObjectID) throw ()
_DWFTK_API DWFDependencyprovideDependency (DWFDependency *pDependency) throw ()
_DWFTK_API DWFInterfaceprovideInterface (DWFInterface *pInterface) throw ()
_DWFTK_API DWFPropertyprovideProperty (DWFProperty *pProperty) throw ()
_DWFTK_API DWFSectionprovideSection (DWFSection *pSection) throw ()
_DWFTK_API void serializeXML (DWFXMLSerializer &rSerializer, unsigned int nFlags) throw ( DWFException )

Protected Member Functions

virtual _DWFTK_API void notifyOwnerChanged (DWFOwnable &rOwnable) throw ( DWFException )
virtual _DWFTK_API void notifyOwnableDeletion (DWFOwnable &rOwnable) throw ( DWFException )

Classes

class  SectionIterator
 This class defines the iterator for enumerating manifest sections.
Since:
7.0.1.
More...


Constructor & Destructor Documentation

_DWFTK_API DWFToolkit::DWFManifest::DWFManifest DWFPackageReader pPackageReader  )  throw ()
 

Constructor

This constructor is generally only used by the parsing process when the DWFPackageReader associated with (and providing read access to) the DWF package file is available. The subsequent binding makes it possible to read content from the DWF package.

Parameters:
pPackageReader Provides access to section content in the DWF package.
Exceptions:
None 

_DWFTK_API DWFToolkit::DWFManifest::DWFManifest const DWFString zObjectID  )  throw ()
 

Constructor

This constructor is generally used by applications and publishers for creating a package manifest.

Parameters:
zObjectID Uniquely identifies the manifest.
Exceptions:
None 

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

Destructor

Exceptions:
None 


Member Function Documentation

_DWFTK_API DWFSection* DWFToolkit::DWFManifest::findSectionByName const DWFString zName  )  throw ()
 

Locates a section in the manifest by name.

Parameters:
zName The unique name of the section in the package.
Returns:
A pointer to the section, if it exists, NULL otherwise. The caller must not delete this pointer without explicitly claiming ownership of it using the DWFCore::DWFOwnable interface exposed by DWFSection.
Exceptions:
None 

_DWFTK_API SectionIterator* DWFToolkit::DWFManifest::findSectionsByType const DWFString zType  )  throw ()
 

Locates all sections in the manifest that share a type.

Parameters:
zType The type of sections to locate.
Returns:
A pointer to an iterator that must be deleted by the caller with the DWFCORE_FREE_OBJECT macro. This pointer may be NULL. The caller must not delete any section pointers obtained from the iterator without explicitly claiming ownership of it using the DWFCore::DWFOwnable interface exposed by DWFSection.
Exceptions:
None 
Examples:
SimpleW3DStreamProcessor/SimpleW3DStreamProcessor.cpp.

_DWFTK_API SectionIterator* DWFToolkit::DWFManifest::getGlobalSections  )  throw ()
 

Locates all global sections in the package.

Returns:
A pointer to an iterator that must be deleted by the caller with the DWFCORE_FREE_OBJECT macro. This pointer may be NULL. The caller must not delete any section pointers obtained from the iterator without explicitly claiming ownership of it using the DWFCore::DWFOwnable interface exposed by DWFSection.
Exceptions:
None 
Examples:
DWFGoogleDesktopCrawl/DWFCrawlHandler.cpp.

_DWFTK_API tInterfaceIterator* DWFToolkit::DWFManifest::getInterfaces  )  throw ()
 

Returns an iterator for listing each unique section interface in the manifest.

Returns:
A pointer to an iterator that must be deleted by the caller with the DWFCORE_FREE_OBJECT macro. This pointer may be NULL.
Exceptions:
None 
Examples:
SimpleEnumReader/SimpleEnumReader.cpp.

_DWFTK_API SectionIterator* DWFToolkit::DWFManifest::getSections  )  throw ()
 

Locates all non-global sections in the package.

Returns:
A pointer to an iterator that must be deleted by the caller with the DWFCORE_FREE_OBJECT macro. This pointer may be NULL. The caller must not delete any section pointers obtained from the iterator without explicitly claiming ownership of it using the DWFCore::DWFOwnable interface exposed by DWFSection.
Exceptions:
None 
Examples:
DWFGoogleDesktopCrawl/DWFCrawlHandler.cpp, ObjectDefinitionReader/ObjectDefinitionReader.cpp, SimpleEnumReader/SimpleEnumReader.cpp, and TimedXMLReader/TimedXMLReader.cpp.

virtual _DWFTK_API void DWFToolkit::DWFManifest::notifyOwnableDeletion DWFOwnable rOwnable  )  throw ( DWFException ) [protected, virtual]
 

Reimplemented from DWFToolkit::DWFPropertyContainer.

virtual _DWFTK_API void DWFToolkit::DWFManifest::notifyOwnerChanged DWFOwnable rOwnable  )  throw ( DWFException ) [protected, virtual]
 

Reimplemented from DWFToolkit::DWFPropertyContainer.

_DWFTK_API const DWFString& DWFToolkit::DWFManifest::objectID  )  const throw () [inline]
 

Returns the unique identifer of the manifest document.

Returns:
The manifest object ID.
Exceptions:
None 
Examples:
SimpleEnumReader/SimpleEnumReader.cpp.

Definition at line 299 of file Manifest.h.

_DWFTK_API DWFDependency* DWFToolkit::DWFManifest::provideDependency DWFDependency pDependency  )  throw () [virtual]
 

Accepts dependency element objects.

Parameters:
pDependency The new dependency. The acceptor is responsible for deleting this pointer with DWFCORE_FREE_OBJECT.
Returns:
The filtered dependency object.
Exceptions:
None 

Reimplemented from DWFToolkit::DWFManifestReader.

_DWFTK_API DWFInterface* DWFToolkit::DWFManifest::provideInterface DWFInterface pInterface  )  throw () [virtual]
 

Accepts interface element objects.

Parameters:
pInterface The new interface. The acceptor is responsible for deleting this pointer with DWFCORE_FREE_OBJECT.
Returns:
The filtered interface object.
Exceptions:
None 

Reimplemented from DWFToolkit::DWFManifestReader.

_DWFTK_API const char* DWFToolkit::DWFManifest::provideObjectID const char *  zObjectID  )  throw () [virtual]
 

Accepts the unique manifest document identifier attribute.

Parameters:
zObjectID The document ID.
Returns:
The filtered document ID.
Exceptions:
None 

Reimplemented from DWFToolkit::DWFManifestReader.

_DWFTK_API DWFProperty* DWFToolkit::DWFManifest::provideProperty DWFProperty pProperty  )  throw () [virtual]
 

Accepts property element objects.

Parameters:
pProperty The new property. The acceptor is responsible for deleting this pointer with DWFCORE_FREE_OBJECT.
Returns:
The filtered property object.
Exceptions:
None 

Reimplemented from DWFToolkit::DWFManifestReader.

_DWFTK_API DWFSection* DWFToolkit::DWFManifest::provideSection DWFSection pSection  )  throw () [virtual]
 

Accepts section element objects.

Parameters:
pSection The new section. The acceptor is responsible for deleting this pointer with DWFCORE_FREE_OBJECT.
Returns:
The filtered section object.
Exceptions:
None 

Reimplemented from DWFToolkit::DWFManifestReader.

_DWFTK_API double DWFToolkit::DWFManifest::provideVersion double  nVersion  )  throw () [virtual]
 

Accepts the manifest document version number attribute.

Parameters:
nVersion The document version.
Returns:
The filtered document version.
Exceptions:
None 

Reimplemented from DWFToolkit::DWFManifestReader.

_DWFTK_API void DWFToolkit::DWFManifest::serializeXML DWFXMLSerializer rSerializer,
unsigned int  nFlags
throw ( DWFException ) [virtual]
 

Writes an XML representation of the object into a stream.

Parameters:
rSerializer The object that accepts the serialization of the object.
nFlags An implementation-defined set of options for altering the serialization process of this object.

Implements DWFToolkit::DWFXMLSerializable.

_DWFTK_API double DWFToolkit::DWFManifest::version  )  const throw () [inline]
 

Returns version of the manifest document schema.

Returns:
The version number.
Exceptions:
None 
Examples:
SimpleEnumReader/SimpleEnumReader.cpp.

Definition at line 286 of file Manifest.h.


The documentation for this class was generated from the following file:
Generated on Tue May 17 12:39:01 2005 for Autodesk DWF Toolkit by  doxygen 1.4.1