Definition at line 66 of file e164item.h.
typedef std::auto_ptr<PersE164Item> OSB_LIB::PersE164Item::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 72 of file e164item.h.
Constructor with optional object id.
OSB_LIB::PersE164Item::PersE164Item | ( | const PersE164Item & | rhs | ) |
Copy constructor: copy create the assigned E.164 resources.
OSB_LIB::PersE164Item::~PersE164Item | ( | ) |
Destructor: delete the assigned E.164 resources.
void OSB_LIB::PersE164Item::assign | ( | const E164Resource & | e164 | ) |
Assign an E.164 resource.
bool OSB_LIB::PersE164Item::canConfig | ( | ) | const [virtual] |
The configuration type of personalized E.164 item.
Implements OSB_LIB::PersProductItem.
AutoPtr OSB_LIB::PersE164Item::clone | ( | ) | const |
Virtual copy construction.
For details see quality manual, implementation patterns.
Reimplemented from OSB_LIB::PersResource.
PersProductItem* OSB_LIB::PersE164Item::clone_ | ( | ) | const [private, virtual] |
Internal virtual copy constructor.
For details see quality manual, implementation patterns.
Implements OSB_LIB::PersProductItem.
Resource* OSB_LIB::PersE164Item::createResource | ( | const Resource::Oid & | resourceId | ) | [private] |
bool OSB_LIB::PersE164Item::delSpecific | ( | const OSB_DB::Session & | session | ) | [private, virtual] |
const E164Resource* OSB_LIB::PersE164Item::e164Resource | ( | ) | const |
Get assigned E.164 resource.
bool OSB_LIB::PersE164Item::insSpecific | ( | const OSB_DB::Session & | session | ) | [private, virtual] |
Resource* OSB_LIB::PersE164Item::oldResource | ( | ) | [private, virtual] |
Non-const access to the previous assigned resource.
Implements OSB_LIB::PersResource.
const Resource* OSB_LIB::PersE164Item::oldResource | ( | ) | const [virtual] |
Access to the old assigned resource.
Implements OSB_LIB::PersResource.
PersE164Item& OSB_LIB::PersE164Item::operator= | ( | const PersE164Item & | rhs | ) |
Assignment operator: copy create the assigned E.164 resources.
std::string OSB_LIB::PersE164Item::personalization | ( | ) | const [virtual] |
Get the personalized resource number.
Reimplemented from OSB_LIB::PersResource.
bool OSB_LIB::PersE164Item::readSpecific | ( | const OSB_DB::Session & | session | ) | [private, virtual] |
Resource* OSB_LIB::PersE164Item::resource | ( | ) | [private, virtual] |
Non-const access to the assigned resource.
Implements OSB_LIB::PersResource.
const Resource* OSB_LIB::PersE164Item::resource | ( | ) | const [virtual] |
Access to the assigned resource.
Implements OSB_LIB::PersResource.
Type OSB_LIB::PersE164Item::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::PersE164Item::updSpecific | ( | const OSB_DB::Session & | session | ) | [private, virtual] |
E164Resource* OSB_LIB::PersE164Item::pE164_ [private] |
E164Resource* OSB_LIB::PersE164Item::pOldE164_ [private] |
const Type OSB_LIB::PersE164Item::type_ [static] |