Definition at line 142 of file accessnumber.h.
typedef std::auto_ptr<PersAn> OSB_LIB::PersAn::AutoPtr |
Documentation from base class.
Reimplemented from OSB_LIB::PersResource.
Definition at line 148 of file accessnumber.h.
OSB_LIB::PersAn::PersAn | ( | const PersAn & | rhs | ) |
Copy constructor: copy create the assigned access number.
OSB_LIB::PersAn::~PersAn | ( | ) |
Destructor: delete the assigned access number.
void OSB_LIB::PersAn::assign | ( | const AccessNumber & | an | ) |
Assign an access number resource.
bool OSB_LIB::PersAn::canConfig | ( | ) | const [virtual] |
The configuration type of personalized access number.
Implements OSB_LIB::PersProductItem.
AutoPtr OSB_LIB::PersAn::clone | ( | ) | const |
Virtual copy construction.
For details see quality manual, implementation patterns.
Reimplemented from OSB_LIB::PersResource.
PersProductItem* OSB_LIB::PersAn::clone_ | ( | ) | const [private, virtual] |
Internal virtual copy constructor.
For details see quality manual, implementation patterns.
Implements OSB_LIB::PersProductItem.
Resource* OSB_LIB::PersAn::createResource | ( | const Resource::Oid & | rId | ) | [private] |
Documentation from base class.
bool OSB_LIB::PersAn::delSpecific | ( | const OSB_DB::Session & | session | ) | [private, virtual] |
bool OSB_LIB::PersAn::insSpecific | ( | const OSB_DB::Session & | session | ) | [private, virtual] |
Resource* OSB_LIB::PersAn::oldResource | ( | ) | [private, virtual] |
const Resource* OSB_LIB::PersAn::oldResource | ( | ) | const [virtual] |
Assignment operator: copy create the assigned access number.
bool OSB_LIB::PersAn::readSpecific | ( | const OSB_DB::Session & | session | ) | [private, virtual] |
Resource* OSB_LIB::PersAn::resource | ( | ) | [private, virtual] |
const Resource* OSB_LIB::PersAn::resource | ( | ) | const [virtual] |
Type OSB_LIB::PersAn::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::PersAn::updSpecific | ( | const OSB_DB::Session & | session | ) | [private, virtual] |
AccessNumber* OSB_LIB::PersAn::pAccessNumber_ [private] |
AccessNumber* OSB_LIB::PersAn::pOldAccessNumber_ [private] |
Pointer to the previous assigned access number resource.
Definition at line 234 of file accessnumber.h.
const Type OSB_LIB::PersAn::type_ [static] |