OSB_LIB::PersAn Class Reference

Inheritance diagram for OSB_LIB::PersAn:

Inheritance graph
[legend]
Collaboration diagram for OSB_LIB::PersAn:

Collaboration graph
[legend]
List of all members.

Detailed Description

Access number resource as personalized items.

Definition at line 142 of file accessnumber.h.

Public Types

Public Member Functions

Static Public Attributes

Private Member Functions

Database operations:
For access numbers, there are no personalization specific data to read: So we can rely on the base class(PersResource).

Private Attributes


Member Typedef Documentation

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.


Constructor & Destructor Documentation

OSB_LIB::PersAn::PersAn ( const Oid oid = Oid()  ) 

Constructor with optional object id.

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.


Member Function Documentation

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.

Returns:
true: Personalized access numbers allow to assign a access number resource.

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]

Delete a pers resource from the database.

Implements OSB_LIB::PersProductItem.

bool OSB_LIB::PersAn::insSpecific ( const OSB_DB::Session session  )  [private, virtual]

Insert a pers resource from the database.

Implements OSB_LIB::PersProductItem.

Resource* OSB_LIB::PersAn::oldResource (  )  [private, virtual]

Documentation from base class.

Implements OSB_LIB::PersResource.

const Resource* OSB_LIB::PersAn::oldResource (  )  const [virtual]

Documentation from base class.

Implements OSB_LIB::PersResource.

PersAn& OSB_LIB::PersAn::operator= ( const PersAn rhs  ) 

Assignment operator: copy create the assigned access number.

bool OSB_LIB::PersAn::readSpecific ( const OSB_DB::Session session  )  [private, virtual]

Read a pers resource from the database.

Implements OSB_LIB::PersProductItem.

Resource* OSB_LIB::PersAn::resource (  )  [private, virtual]

Documentation from base class.

Implements OSB_LIB::PersResource.

const Resource* OSB_LIB::PersAn::resource (  )  const [virtual]

Documentation from base class.

Implements OSB_LIB::PersResource.

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).

Remarks:
Derived classes declare the function private.

Implements OSB_LIB::ProductItemBase.

bool OSB_LIB::PersAn::updSpecific ( const OSB_DB::Session session  )  [private, virtual]

Update a pers resource from the database.

Implements OSB_LIB::PersProductItem.


Member Data Documentation

AccessNumber* OSB_LIB::PersAn::pAccessNumber_ [private]

Pointer to the assigned access number resource.

Definition at line 232 of file accessnumber.h.

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]

The product item type: PiType::piAnItem.

Definition at line 145 of file accessnumber.h.


The documentation for this class was generated from the following file:
Generated on Sat Sep 2 14:10:30 2006 for OSB Library by  doxygen 1.4.7