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

Phx::PhxFactory< T > Class Template Reference

#include <PhxFactory.h>

List of all members.

Public Member Functions

virtual const String & getType () const =0
virtual T * createInstance (const String &name)=0
virtual void destroyInstance (T *)=0


Detailed Description

template<typename T>
class Phx::PhxFactory< T >

Abstract factory class. Does nothing by itself, but derived classes can add functionality.


Member Function Documentation

template<typename T>
virtual T* Phx::PhxFactory< T >::createInstance const String &  name  )  [pure virtual]
 

Creates a new object.

Parameters:
name Name of the object to create
Returns:
An object created by the factory. The type of the object depends on the factory.

template<typename T>
virtual void Phx::PhxFactory< T >::destroyInstance T *   )  [pure virtual]
 

Destroys an object which was created by this factory.

Parameters:
ptr Pointer to the object to destroy

template<typename T>
virtual const String& Phx::PhxFactory< T >::getType  )  const [pure virtual]
 

Returns the factory type.

Returns:
The factory type.


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