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

Phx::NamedInterface::Manager::TypeListener Class Reference

A listener class which is used to call back the client to create and delete instances of a NamedInterface. More...

#include <PhxNamedInterface.h>

Inheritance diagram for Phx::NamedInterface::Manager::TypeListener:

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

Public Member Functions

virtual Ptr< NamedInterfaceonNewNamedInterface (const Ptr< Description > &constructorData, const String &instanceName, NamedInterface::Identifier identifier)=0
 Called by the manager when a new instance of an interface is requested.
virtual void onDeleteNamedInterface (const Ptr< NamedInterface > &interface)=0
 Called by the manager when an instance of this interface type is deleted.

Detailed Description

A listener class which is used to call back the client to create and delete instances of a NamedInterface.


Member Function Documentation

virtual void Phx::NamedInterface::Manager::TypeListener::onDeleteNamedInterface const Ptr< NamedInterface > &  interface  )  [pure virtual]
 

Called by the manager when an instance of this interface type is deleted.

You shouldn't delete the interface explicitly since it's a smart-pointer. This hook is simply provided so that you can detach the object from internal structures when it's time for it to be removed from the system.

Parameters:
interface The interface instance to be deleted.

virtual Ptr<NamedInterface> Phx::NamedInterface::Manager::TypeListener::onNewNamedInterface const Ptr< Description > &  constructorData,
const String &  instanceName,
NamedInterface::Identifier  identifier
[pure virtual]
 

Called by the manager when a new instance of an interface is requested.

Parameters:
constructorData A description containing information that can be used in the construction of the object. This might be data sent by a network server, or configuration info read from a file.
instanceName The text name that will identify the object after it is constructed. This is the name that will be stored in the NamedInterface::name() attribute.
identifier The identifier that will identify the object after it is constructed. This is the identifier that will be stored in the NamedInterface::identifier() attribute.
Returns:
Should return a pointer to a new instance of the interface type for which this listener was installed.


The documentation for this class was generated from the following file:
Generated on Mon Jul 10 19:45:29 2006 for Phoenix OSFS by  doxygen 1.4.2