DWFCore::DWFOwner Class Reference

#include "dwfcore/Owner.h"

Inheritance diagram for DWFCore::DWFOwner:

Inheritance graph
[legend]
List of all members.

Detailed Description

Generalization for classes that maintain ownership of others.

Since:
1.0.1
This class base and callback interface is available as part of a simple object ownership mechanism in the library. Objects specializing this class may be assigned as owners of objects that specialize the DWFOwnable class.

Definition at line 57 of file Owner.h.

Public Member Functions

virtual _DWFCORE_API ~DWFOwner () throw ()
virtual _DWFCORE_API void notifyOwnerChanged (DWFOwnable &rOwnable) throw ( DWFException )
virtual _DWFCORE_API void notifyOwnableDeletion (DWFOwnable &rOwnable) throw ( DWFException )

Protected Member Functions

_DWFCORE_API DWFOwner () throw ()


Constructor & Destructor Documentation

virtual _DWFCORE_API DWFCore::DWFOwner::~DWFOwner  )  throw () [virtual]
 

Destructor

Exceptions:
None 

_DWFCORE_API DWFCore::DWFOwner::DWFOwner  )  throw () [protected]
 

Constructor

Exceptions:
None 


Member Function Documentation

virtual _DWFCORE_API void DWFCore::DWFOwner::notifyOwnableDeletion DWFOwnable rOwnable  )  throw ( DWFException ) [virtual]
 

This callback notification is made when a previously owned object is about to be destroyed. This method will not be invoked if the ownership change was made with DWFOwnable::disown() with bForget set to true.

Note:
The current object owner is not notified through this method. Obviously, the owner ought be the only one deleting the ownable.
Parameters:
rOwnable The object being deleted.
Exceptions:
DWFException 

Reimplemented in DWFCore::DWFUnzippingInputStream.

virtual _DWFCORE_API void DWFCore::DWFOwner::notifyOwnerChanged DWFOwnable rOwnable  )  throw ( DWFException ) [virtual]
 

This callback notification is made when the ownership of an owned object changes. This owner should take whatever action is necessary to respond to the status change.

Parameters:
rOwnable The object now owned by a different owner.
Exceptions:
DWFException 

Reimplemented in DWFCore::DWFUnzippingInputStream.


The documentation for this class was generated from the following file:
Generated on Tue Jan 6 22:39:38 2009 for Autodesk DWF Core Library by  doxygen 1.4.5