OSB_LIB::TcsVersionFactory Class Reference

List of all members.

Detailed Description

Factory for TcsVersion objects.

The class create a tariff classification system version object of appropriate type based on the TcsType of the tariff classification system version class.

The class is purely static, no object of the class should be instantiated: The default and copy constructors are declared private and not implemented.

Definition at line 891 of file tariffclass.h.

Static Public Member Functions

Private Member Functions


Constructor & Destructor Documentation

OSB_LIB::TcsVersionFactory::TcsVersionFactory (  )  [private]

Prevent construction: not implemented.

OSB_LIB::TcsVersionFactory::TcsVersionFactory ( const TcsVersionFactory rhs  )  [private]

Prevent construction: not implemented.


Member Function Documentation

static TcsVersion::AutoPtr OSB_LIB::TcsVersionFactory::create ( const TcSystem::TcsType type,
const TcSystem::Oid tcsId 
) [static]

Create a Tariff classification system version object.

Parameters:
type Type of TCS version to create.
tcsId Object id of the parent tariff classification system.
Returns:
An auto pointer that owns a tariff classification system version of the requested type. If the tariff classification system version is not supported, the pointer is 0.
Remarks:
The caller of the function should check the content of the returned auto pointer and take appropriate action (e.g. throw an exception) if it is 0.


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