OSB_LIB::CpMapperFactory Class Reference

List of all members.

Detailed Description

Create concrete objects of CpMapper.

The class creates allocates CpMapper objects using CpMapper::Type as criteria to which class to instantiate.

The only public member is the static member function mkCpMapper, the design does not forsee to create objects of the class.

Remarks:
Default and copy constructor, assignment operator and destructor are private and not implemented, thus preventing class instantiation.

Definition at line 263 of file cpmapper.h.

Static Public Member Functions

Private Member Functions


Constructor & Destructor Documentation

OSB_LIB::CpMapperFactory::CpMapperFactory (  )  [private]

Not implemented.

OSB_LIB::CpMapperFactory::~CpMapperFactory (  )  [private]

Not implemented.

OSB_LIB::CpMapperFactory::CpMapperFactory ( const CpMapperFactory  )  [private]

Not implemented.


Member Function Documentation

static CpMapper::AutoPtr OSB_LIB::CpMapperFactory::mkCpMapper ( CpMapper::Type  type  )  [static]

Create a CpMapper object.

The function allocates an object derived from CpMapper dependent on the type passed as first argument.

Parameters:
type Identifies the concreate class to create.
Exceptions:
std::exception if memory allocation fails, OsbException as described in the constructors of CpMapper classes.
In particular no exception is thrown if `type' is not supported.
Returns:
An auto pointer that owns the created object. Its value is 0 (NULL) if the `type' is not supported or if memory allocation fails.
Remarks:
The caller of the function is responsible to verify the return value and to take appropriate measures if it is 0.

CpMapperFactory& OSB_LIB::CpMapperFactory::operator= ( CpMapperFactory  )  [private]

Not implemented.


The documentation for this class was generated from the following file:
Generated on Sat Sep 2 14:15:27 2006 for OSB Library by  doxygen 1.4.7