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

Phx::Description::Manager::TypeListener Class Reference

A listener type that is invoked to construct new instances of Description subclasses. More...

#include <PhxDescription.h>

Inheritance diagram for Phx::Description::Manager::TypeListener:

Phx::BaseMultiListener< Description::Manager, TypeListener, Description::Type > Phx::LockedPtrInterface< BaseMultiListener< Description::Manager, TypeListener, Description::Type > > List of all members.

Public Member Functions

virtual Ptr< DescriptiononNewDescription (const Ptr< const Description > &description)=0
 Called to construct a new instance of the Description type that this listener is registered for.

Detailed Description

A listener type that is invoked to construct new instances of Description subclasses.

Subclasses of TypeListener are implemented to instantiate Description objects. The listener is then set via Manager::descriptionTypeListener() and will be called back whenever instances of a description of the specified type are needed.


Member Function Documentation

virtual Ptr<Description> Phx::Description::Manager::TypeListener::onNewDescription const Ptr< const Description > &  description  )  [pure virtual]
 

Called to construct a new instance of the Description type that this listener is registered for.

Parameters:
description A source description from which to generate the new description. As much as possible, the returned description should be a "clone" of description. This generally means that all of their attributes should match. If description is 0, then a default constructed instance should be returned.
Returns:
A pointer to a new instance of the Description subclass that this listener represents.


The documentation for this class was generated from the following file:
Generated on Wed Dec 21 22:05:38 2005 for Phoenix OSFS by  doxygen 1.4.2