OSB_LIB::CallingCardItem Class Reference

Inheritance diagram for OSB_LIB::CallingCardItem:

Inheritance graph
[legend]
Collaboration diagram for OSB_LIB::CallingCardItem:

Collaboration graph
[legend]
List of all members.

Detailed Description

Calling card as product item.

A "calling card" which is part of a product does not refer to an individual calling card.

Definition at line 238 of file callingcard.h.

Public Types

Public Member Functions

Static Public Attributes

Private Member Functions

Database operations:
Calling card items do not need specific data to be stored in the database.

All the database operations on calling card item do not commit or rollback the transactions. This is indicated by taking a const OSB_DB::Session as argument.


Member Typedef Documentation

typedef std::auto_ptr<CallingCardItem> OSB_LIB::CallingCardItem::AutoPtr

Short-cut for an auto pointer.

For details see quality manual, implementation patterns: Virtual copy construction.

Reimplemented from OSB_LIB::ResourceItem.

Definition at line 243 of file callingcard.h.


Constructor & Destructor Documentation

OSB_LIB::CallingCardItem::CallingCardItem ( const Oid oid,
const std::string &  name = "",
const std::string &  des = "" 
)

Constructor with object id, name and description.

Parameters:
oid Product item object id.
name Name of the resource item.
des Description of the resource item.


Member Function Documentation

ProductItem::CfgType OSB_LIB::CallingCardItem::canConfigure (  )  const [virtual]

Configuration type.

Returns:
Calling card item can not be configured: ProductItem::cfgNone.

Implements OSB_LIB::ProductItem.

ProductItem::DefPersType OSB_LIB::CallingCardItem::canDefPers (  )  const [virtual]

Default personalization type.

Returns:
Default personalization is not possible: ProductItem::defPersNone;

Implements OSB_LIB::ProductItem.

CfgPersType OSB_LIB::CallingCardItem::canPersonalize (  )  const [virtual]

The personalization type of calling card item.

Implements OSB_LIB::ProductItem.

AutoPtr OSB_LIB::CallingCardItem::clone (  )  const

Virtual copy construction.

For details see quality manual, implementation patterns.

Reimplemented from OSB_LIB::ResourceItem.

ProductItem* OSB_LIB::CallingCardItem::clone_ (  )  const [private, virtual]

Virtual copy construction.

For details see quality manual, implementation patterns.

Implements OSB_LIB::ResourceItem.

std::auto_ptr<PersProductItem> OSB_LIB::CallingCardItem::crePersProductItem (  )  const [virtual]

Create a personalized calling card.

Returns:
An auto pointer that contains a PersCallingCard, which has no CallingCard assigned.

Implements OSB_LIB::ProductItem.

const PersProductItem* OSB_LIB::CallingCardItem::defPersItem (  )  const [virtual]

Pointer to the default personalize product item.

Implements OSB_LIB::ProductItem.

bool OSB_LIB::CallingCardItem::delSpecific ( const OSB_DB::Session session  )  [private, virtual]

No item specific data to delete.

Parameters:
session Database session to use.
Returns:
Always true.

Implements OSB_LIB::ProductItem.

bool OSB_LIB::CallingCardItem::insSpecific ( const OSB_DB::Session session  )  [private, virtual]

No item specific data to insert.

Parameters:
session Database session to use.
Returns:
Always true.

Implements OSB_LIB::ProductItem.

bool OSB_LIB::CallingCardItem::readSpecific ( const OSB_DB::Session session  )  [private, virtual]

No item specific data to read.

Parameters:
session Database session to use.
Returns:
Always true.

Implements OSB_LIB::ProductItem.

Type OSB_LIB::CallingCardItem::type (  )  const [inline, virtual]

Get the product item type id.

Implements OSB_LIB::ProductItemBase.

Definition at line 260 of file callingcard.h.

References type_.

bool OSB_LIB::CallingCardItem::updSpecific ( const OSB_DB::Session session  )  [private, virtual]

No item specific data to update.

Parameters:
session Database session to use.
Returns:
Always true.

Implements OSB_LIB::ProductItem.


Member Data Documentation

const Type OSB_LIB::CallingCardItem::type_ [static]

The product item type id: PiType::piCallingCard.

Definition at line 241 of file callingcard.h.

Referenced by type().


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