

This product item stores a list of tariff systems available for a product, one of the tariff systems may be marked as the default for personalization.
Definition at line 229 of file tsitem.h.
| typedef std::auto_ptr<TariffSystemItem> OSB_LIB::TariffSystemItem::AutoPtr |
Short-cut for an auto pointer.
For details see quality manual, implementation patterns: Virtual copy construction.
Reimplemented from OSB_LIB::ProductItem.
| typedef std::set<TsId> OSB_LIB::TariffSystemItem::TsList |
| OSB_LIB::TariffSystemItem::TariffSystemItem | ( | const Oid & | oid, | |
| const std::string & | name = "", |
|||
| const std::string & | des = "" | |||
| ) |
Constructor with object id, name and description.
| oid | Product item object id. | |
| name | Name of the tariff system item. | |
| des | Description of the tariff system item. |
| bool OSB_LIB::TariffSystemItem::addTs | ( | const TsId & | ts | ) |
Add a tariff system.
| ts | Id of the tariff system to add. |
| ProductItem::CfgType OSB_LIB::TariffSystemItem::canConfigure | ( | ) | const [inline, virtual] |
The configuration type of tariff system item.
Implements OSB_LIB::ProductItem.
Definition at line 269 of file tsitem.h.
References OSB_LIB::ProductItem::cfgMandatory.
| ProductItem::DefPersType OSB_LIB::TariffSystemItem::canDefPers | ( | ) | const [inline, virtual] |
The default personalization type of tariff system item.
Implements OSB_LIB::ProductItem.
Definition at line 274 of file tsitem.h.
References OSB_LIB::ProductItem::defPersOptional.
| CfgPersType OSB_LIB::TariffSystemItem::canPersonalize | ( | ) | const [virtual] |
| void OSB_LIB::TariffSystemItem::clear | ( | ) |
Delete all added tariff systems and unset default.
| void OSB_LIB::TariffSystemItem::clearDefaultTs | ( | ) |
Clear the default tariff system.
| AutoPtr OSB_LIB::TariffSystemItem::clone | ( | ) | const |
Virtual copy construction.
For details see quality manual, implementation patterns.
Reimplemented from OSB_LIB::ProductItem.
| ProductItem* OSB_LIB::TariffSystemItem::clone_ | ( | ) | const [private, virtual] |
Virtual copy construction.
For details see quality manual, implementation patterns.
Implements OSB_LIB::ProductItem.
| std::auto_ptr<PersProductItem> OSB_LIB::TariffSystemItem::crePersProductItem | ( | ) | const [virtual] |
Create a personalized tariff system item.
Implements OSB_LIB::ProductItem.
| void OSB_LIB::TariffSystemItem::defaultTs | ( | const TsId & | ts | ) |
Set the default tariff system for personalization.
| ts | Id of the new default tariff system. |
| const TsId& OSB_LIB::TariffSystemItem::defaultTs | ( | ) | const |
Get the default tariff system.
| const PersProductItem* OSB_LIB::TariffSystemItem::defPersItem | ( | ) | const [virtual] |
| bool OSB_LIB::TariffSystemItem::delSpecific | ( | const OSB_DB::Session & | session | ) | [private, virtual] |
Delete a tariff system item from the database.
The function uses a OSB_DB::TsItemGw to remove data.
| session | Database session to use. |
| OsbException |
|
Implements OSB_LIB::ProductItem.
| bool OSB_LIB::TariffSystemItem::insSpecific | ( | const OSB_DB::Session & | session | ) | [private, virtual] |
Insert a tariff system item to the database.
The function uses a OSB_DB::TsItemGw to insert data member to the database.
| session | Database session to use. |
| OsbException |
|
Implements OSB_LIB::ProductItem.
| bool OSB_LIB::TariffSystemItem::readSpecific | ( | const OSB_DB::Session & | session | ) | [private, virtual] |
(Re)read a tariff system item from the database.
The function uses a OSB_DB::TsItemGw to read the data members.
| session | Database session to use. |
| OsbException |
|
Implements OSB_LIB::ProductItem.
| bool OSB_LIB::TariffSystemItem::rmTs | ( | const TsId & | ts | ) |
Delete a tariff system.
| ts | Id of the tariff system to delete. |
| const TsList& OSB_LIB::TariffSystemItem::tsList | ( | ) | const |
List of tariff systems added to the item.
| Type OSB_LIB::TariffSystemItem::type | ( | ) | const [inline, virtual] |
Get the product item type id.
Implements OSB_LIB::ProductItemBase.
Definition at line 252 of file tsitem.h.
References type_.
| bool OSB_LIB::TariffSystemItem::updSpecific | ( | const OSB_DB::Session & | session | ) | [private, virtual] |
Update a tariff system item in the database.
The function uses a OSB_DB::TsItemGw to update data member in the database.
| session | Database session to use. |
| OsbException |
|
Implements OSB_LIB::ProductItem.
TsId OSB_LIB::TariffSystemItem::defaultTs_ [private] |
TsList OSB_LIB::TariffSystemItem::tsList_ [private] |
const Type OSB_LIB::TariffSystemItem::type_ [static] |
The product item type id: PiType::piTariffSystem.
Definition at line 232 of file tsitem.h.
Referenced by type().
1.4.7