Definition at line 511 of file ipaddress.h.
typedef std::auto_ptr<IpGroupItem> OSB_LIB::IpGroupItem::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 517 of file ipaddress.h.
OSB_LIB::IpGroupItem::IpGroupItem | ( | 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 resource item. | |
des | Description of the resource item. |
ProductItem::CfgType OSB_LIB::IpGroupItem::canConfigure | ( | ) | const [virtual] |
Configuration type.
Implements OSB_LIB::ProductItem.
ProductItem::DefPersType OSB_LIB::IpGroupItem::canDefPers | ( | ) | const [virtual] |
Default personalization type.
Implements OSB_LIB::ProductItem.
CfgPersType OSB_LIB::IpGroupItem::canPersonalize | ( | ) | const [virtual] |
The personalization type of PersIpGroup.
Implements OSB_LIB::ProductItem.
AutoPtr OSB_LIB::IpGroupItem::clone | ( | ) | const |
Virtual copy construction.
For details see quality manual, implementation patterns.
Reimplemented from OSB_LIB::ResourceItem.
ProductItem* OSB_LIB::IpGroupItem::clone_ | ( | ) | const [private, virtual] |
Virtual copy construction.
For details see quality manual, implementation patterns.
Implements OSB_LIB::ResourceItem.
std::auto_ptr<PersProductItem> OSB_LIB::IpGroupItem::crePersProductItem | ( | ) | const [virtual] |
Create a personalized IP group.
Implements OSB_LIB::ProductItem.
const PersProductItem* OSB_LIB::IpGroupItem::defPersItem | ( | ) | const [virtual] |
bool OSB_LIB::IpGroupItem::delSpecific | ( | const OSB_DB::Session & | session | ) | [private, virtual] |
bool OSB_LIB::IpGroupItem::insSpecific | ( | const OSB_DB::Session & | session | ) | [private, virtual] |
bool OSB_LIB::IpGroupItem::readSpecific | ( | const OSB_DB::Session & | session | ) | [private, virtual] |
Type OSB_LIB::IpGroupItem::type | ( | ) | const [virtual] |
The type of the product item.
The function returns the type of the product item. It is needed for only one reason: Corba clients must provide a configuration window that depends on the actual type.
No appropriate design can be provided: Unless on-line clients use the real product item type through-out the whole live cycle of an object, there must be a way to determine the actual type of a product item. No matter how clever we make our design, for on-line clients there will always be one step where they need to determine a product item's type in a switch-like statement. For this step I personally perfer to work with an enumeration type (and compiler warnings) rather than relying on dynamic casts (where errors can be detected only during run-time).
Implements OSB_LIB::ProductItemBase.
bool OSB_LIB::IpGroupItem::updSpecific | ( | const OSB_DB::Session & | session | ) | [private, virtual] |
const Type OSB_LIB::IpGroupItem::type_ [static] |