The class creates a product item of the appropriate type based on the (hardcoded) type identifier of the product item class.
The class is purely static, no objects of the class should be instantiated: The default and the copy constructor are declared private and not implemented.
Definition at line 71 of file productitemfactory.h.
OSB_LIB::ProductItemFactory::ProductItemFactory | ( | ) | [private] |
Prevent construction: not implemented.
OSB_LIB::ProductItemFactory::ProductItemFactory | ( | const ProductItemFactory & | rhs | ) | [private] |
Prevent construction: not implemented.
static PersProductItem::AutoPtr OSB_LIB::ProductItemFactory::create | ( | ProductItem::Type | type, | |
const PersProductItem::Oid & | oid | |||
) | [static] |
Create a personalized product item.
type | Identifies the type of object to create. | |
oid | Object id of the new pers. product item. |
Even if a new product item type can not be personalized, the related type id should be added to the function body. This avoids later research work about the missing type.
static ProductItem::AutoPtr OSB_LIB::ProductItemFactory::create | ( | ProductItem::Type | type, | |
const ProductItem::Oid & | oid | |||
) | [static] |
Create a product item.
type | Identifies the type of object to create. | |
oid | Object id of the new product item. |