DWFToolkit::OPCRelationshipContainer Class Reference

Inheritance diagram for DWFToolkit::OPCRelationshipContainer:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 50 of file RelationshipContainer.h.

Public Member Functions

virtual _DWFTK_API OPCRelationshipaddRelationship (OPCPart *pTargetPart, const DWFString &zRelationshipType, OPCRelationship::teTargetMode eTargetMode) throw ( DWFException )
virtual _DWFTK_API bool deleteRelationship (OPCRelationship *pRelationship) throw ()
virtual _DWFTK_API size_t relationshipCount () const throw ()
virtual _DWFTK_API OPCRelationship::tIteratorrelationships () throw ()
virtual _DWFTK_API OPCRelationship::tIteratorrelationshipsByTarget (const DWFString &zTargetURI) const throw ()
virtual _DWFTK_API OPCRelationship::tIteratorrelationshipsByTarget (OPCPart *pPart) const throw ()
virtual _DWFTK_API OPCRelationship::tIteratorrelationshipsByType (const DWFString &zType) const throw ()
virtual _DWFTK_API void deleteRelationshipsByTarget (OPCPart *pPart) throw ( DWFException )
_DWFTK_API DWFInputStreamgetInputStream () throw ( DWFException )

Protected Attributes

char * _pBuffer


Member Function Documentation

virtual _DWFTK_API OPCRelationship* DWFToolkit::OPCRelationshipContainer::addRelationship OPCPart pTargetPart,
const DWFString zRelationshipType,
OPCRelationship::teTargetMode  eTargetMode
throw ( DWFException ) [virtual]
 

Create and add a new relationship from the container to the specified part.

Parameters:
pTargetPart The target of the new relationship.
zRelationshipType The type to be assigned to the relationship.
eTargetMode The mode of the relationship - internal or external.
Returns:
Pointer to the new relationship
Exceptions:
DWFException 

Implements DWFToolkit::OPCRelationshipContainerInterface.

virtual _DWFTK_API bool DWFToolkit::OPCRelationshipContainer::deleteRelationship OPCRelationship pRelationship  )  throw () [virtual]
 

Delete a specific relationship

Parameters:
pRelationship Pointer to the relationship to be removed.
Exceptions:
None 

Implements DWFToolkit::OPCRelationshipContainerInterface.

virtual _DWFTK_API void DWFToolkit::OPCRelationshipContainer::deleteRelationshipsByTarget OPCPart pPart  )  throw ( DWFException ) [virtual]
 

Remove all relationships from this item to the specified target.

Parameters:
pTargetPart Relationships to this target willl be removed.
Exceptions:
None. 

Implements DWFToolkit::OPCRelationshipContainerInterface.

_DWFTK_API DWFInputStream* DWFToolkit::OPCRelationshipContainer::getInputStream  )  throw ( DWFException )
 

Get the input stream that will provide the serialized bytes of all relationships in the container.

Returns:
Pointer to an input stream. It must be deleted by the caller using DWFCORE_FREE_OBJECT.
Exceptions:
DWFException 

Reimplemented from DWFToolkit::OPCRelationshipContainerInterface.

virtual _DWFTK_API size_t DWFToolkit::OPCRelationshipContainer::relationshipCount  )  const throw () [virtual]
 

Get the total number of relationships from this item.

Returns:
The number of relationships from this item.
Exceptions:
None. 

Implements DWFToolkit::OPCRelationshipContainerInterface.

virtual _DWFTK_API OPCRelationship::tIterator* DWFToolkit::OPCRelationshipContainer::relationships  )  throw () [virtual]
 

Get all the relationships from this item

Returns:
Pointer to an iterator over all relationships. It may be NULL. It must be deleted using DWFCORE_FREE_OBJECT.
Exceptions:
None. 

Implements DWFToolkit::OPCRelationshipContainerInterface.

virtual _DWFTK_API OPCRelationship::tIterator* DWFToolkit::OPCRelationshipContainer::relationshipsByTarget OPCPart pPart  )  const throw () [virtual]
 

Get all the relationships from this item to a specific target.

Parameters:
pTargetPart Relationships to this target will be returned.
Returns:
Pointer to an iterator over the relationships. It may be NULL. It must be deleted using DWFCORE_FREE_OBJECT.
Exceptions:
None. 

Implements DWFToolkit::OPCRelationshipContainerInterface.

virtual _DWFTK_API OPCRelationship::tIterator* DWFToolkit::OPCRelationshipContainer::relationshipsByTarget const DWFString zTargetURI  )  const throw () [virtual]
 

Get all the relationships from this item to a specific target.

Parameters:
zTargetURI Relationships to the target with this URI will be returned.
Returns:
Pointer to an iterator over the relationships. It may be NULL. It must be deleted using DWFCORE_FREE_OBJECT.
Exceptions:
None. 

Implements DWFToolkit::OPCRelationshipContainerInterface.

virtual _DWFTK_API OPCRelationship::tIterator* DWFToolkit::OPCRelationshipContainer::relationshipsByType const DWFString zType  )  const throw () [virtual]
 

Get all the relationships of a given type from this item.

Parameters:
zType The type of relationships to be iterated over.
Returns:
Pointer to an iterator over the relationships. It may be NULL. It must be deleted using DWFCORE_FREE_OBJECT.
Exceptions:
None. 

Implements DWFToolkit::OPCRelationshipContainerInterface.


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