ToDo: Description.
Definition at line 261 of file trunkresource.h.
typedef std::auto_ptr<PersTrunk> OSB_LIB::PersTrunk::AutoPtr |
Short-cut for an auto pointer.
For details see quality manual, implementation patterns: Virtual copy construction.
Reimplemented from OSB_LIB::PersResource.
Definition at line 264 of file trunkresource.h.
OSB_LIB::PersTrunk::PersTrunk | ( | const PersTrunk & | rhs | ) |
Copy constructor: copy create the assigned trunk resource.
OSB_LIB::PersTrunk::~PersTrunk | ( | ) |
Destructor: delete the assigned trunk resource.
void OSB_LIB::PersTrunk::assign | ( | const TrunkResource & | trunkResource | ) |
Assign a trunk resource.
virtual bool OSB_LIB::PersTrunk::canConfig | ( | ) | const [virtual] |
The configuration type of personalized trunk.
Implements OSB_LIB::PersProductItem.
AutoPtr OSB_LIB::PersTrunk::clone | ( | ) | const |
Virtual copy construction.
For details see quality manual, implementation patterns.
Reimplemented from OSB_LIB::PersResource.
PersProductItem* OSB_LIB::PersTrunk::clone_ | ( | ) | const [private, virtual] |
Internal virtual copy constructor.
For details see quality manual, implementation patterns.
Implements OSB_LIB::PersProductItem.
virtual Resource* OSB_LIB::PersTrunk::createResource | ( | const Resource::Oid & | resourceId | ) | [private, virtual] |
Documentation from base class.
virtual bool OSB_LIB::PersTrunk::delSpecific | ( | const OSB_DB::Session & | session | ) | [private, virtual] |
Delete type specific entries from the database.
session | Database session to use. |
Implements OSB_LIB::PersProductItem.
virtual bool OSB_LIB::PersTrunk::insSpecific | ( | const OSB_DB::Session & | session | ) | [private, virtual] |
Insert type specific members to the database.
session | Database session to use. |
Implements OSB_LIB::PersProductItem.
virtual Resource* OSB_LIB::PersTrunk::oldResource | ( | ) | [private, virtual] |
virtual const Resource* OSB_LIB::PersTrunk::oldResource | ( | ) | const [virtual] |
Assignment operator: copy create the assigned trunk resource.
virtual bool OSB_LIB::PersTrunk::readSpecific | ( | const OSB_DB::Session & | session | ) | [private, virtual] |
Read a pers. trunk from the database.
ToDo: implement, describe logic. Doc of return: ToDo: Doc of return: what about the trunk resource?
session | Database session to use. |
OsbException | in case of database error. |
Implements OSB_LIB::PersProductItem.
virtual Resource* OSB_LIB::PersTrunk::resource | ( | ) | [private, virtual] |
virtual const Resource* OSB_LIB::PersTrunk::resource | ( | ) | const [virtual] |
virtual Type OSB_LIB::PersTrunk::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.
virtual bool OSB_LIB::PersTrunk::updSpecific | ( | const OSB_DB::Session & | session | ) | [private, virtual] |
Update type specific members in the database.
session | Database session to use. |
Implements OSB_LIB::PersProductItem.
TrunkResource* OSB_LIB::PersTrunk::trunkResource_ [private] |
const Type OSB_LIB::PersTrunk::type_ [static] |