Templates::DefaultFactoryError< IdentifierType, AbstractProduct > Class Template Reference

Manages the "Unknown Type" error in an object factory. More...

#include <factory.h>

List of all members.

Static Public Member Functions

static AbstractProduct * onUnknownType (IdentifierType)
 Reaction to the "Unknown Type" error.

Protected Member Functions

 DefaultFactoryError ()
 Default constructor.
 ~DefaultFactoryError ()
 Destructor.


Detailed Description

template<typename IdentifierType, class AbstractProduct>
class Templates::DefaultFactoryError< IdentifierType, AbstractProduct >

Manages the "Unknown Type" error in an object factory.

Constructor & Destructor Documentation

template<typename IdentifierType, class AbstractProduct>
Templates::DefaultFactoryError< IdentifierType, AbstractProduct >::DefaultFactoryError (  )  [inline, protected]

Default constructor.

template<typename IdentifierType, class AbstractProduct>
Templates::DefaultFactoryError< IdentifierType, AbstractProduct >::~DefaultFactoryError (  )  [inline, protected]

Destructor.


Member Function Documentation

template<typename IdentifierType, class AbstractProduct>
static AbstractProduct* Templates::DefaultFactoryError< IdentifierType, AbstractProduct >::onUnknownType ( IdentifierType   )  [inline, static]

Reaction to the "Unknown Type" error.

Parameters:
[in] id Selected object ID.
This default implementation uses only an assert and returns a null pointer.


The documentation for this class was generated from the following file:

Generated on Sat Dec 20 19:21:24 2008 for PGR2008 by  doxygen 1.5.6