OSB_LIB::PersIpGroup Class Reference

Inheritance diagram for OSB_LIB::PersIpGroup:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

IP group resource as personalized items.

Definition at line 412 of file ipaddress.h.

Public Types

Public Member Functions

Static Public Attributes

Private Member Functions

Database operations:
For IP groups, 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<PersIpGroup> OSB_LIB::PersIpGroup::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 418 of file ipaddress.h.


Constructor & Destructor Documentation

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

Constructor with optional object id.

OSB_LIB::PersIpGroup::PersIpGroup ( const PersIpGroup rhs  ) 

Copy constructor: copy create the assigned IP group.

OSB_LIB::PersIpGroup::~PersIpGroup (  ) 

Destructor: delete the assigned IP group.


Member Function Documentation

void OSB_LIB::PersIpGroup::assign ( const IpGroup ipg  ) 

Assign an IP group resource.

bool OSB_LIB::PersIpGroup::canConfig (  )  const [virtual]

The configuration type of personalized IP group.

Returns:
true: Personalized IP groups allow to assign a IP group resource.

Implements OSB_LIB::PersProductItem.

AutoPtr OSB_LIB::PersIpGroup::clone (  )  const

Virtual copy construction.

For details see quality manual, implementation patterns.

Reimplemented from OSB_LIB::PersResource.

PersProductItem* OSB_LIB::PersIpGroup::clone_ (  )  const [private, virtual]

Internal virtual copy constructor.

For details see quality manual, implementation patterns.

Implements OSB_LIB::PersProductItem.

Resource* OSB_LIB::PersIpGroup::createResource ( const Resource::Oid resourceId  )  [private]

bool OSB_LIB::PersIpGroup::delSpecific ( const OSB_DB::Session session  )  [private, virtual]

Delete a pers resource from the database.

Implements OSB_LIB::PersProductItem.

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

Insert a pers resource from the database.

Implements OSB_LIB::PersProductItem.

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

Non-const access to the previous assigned resource.

Returns:
A pointer to the previous assigned resource. It is 0 if no old resource is assigned.

Implements OSB_LIB::PersResource.

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

Documentation from base class.

Implements OSB_LIB::PersResource.

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

Assignment operator: copy create the assigned IP group.

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

Read a pers resource from the database.

Implements OSB_LIB::PersProductItem.

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

Non-const access to the assigned resource.

Returns:
A pointer to the assigned resource. It is 0 if no resource is assigned.

Implements OSB_LIB::PersResource.

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

Access to the assigned resource.

Returns:
A pointer to the assigned resource, it is 0 if no resource is assigned.

Implements OSB_LIB::PersResource.

Type OSB_LIB::PersIpGroup::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::PersIpGroup::updSpecific ( const OSB_DB::Session session  )  [private, virtual]

Update a pers resource from the database.

Implements OSB_LIB::PersProductItem.


Member Data Documentation

IpGroup* OSB_LIB::PersIpGroup::pIpGroup_ [private]

Pointer to the assigned IP group resource.

Definition at line 501 of file ipaddress.h.

IpGroup* OSB_LIB::PersIpGroup::pOldIpGroup_ [private]

Pointer to the previous assigned IP group resource.

Definition at line 503 of file ipaddress.h.

const Type OSB_LIB::PersIpGroup::type_ [static]

The product item type id: PiType::piIpGroup.

Definition at line 415 of file ipaddress.h.


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