OSB_CORBA::IpGroupWriter_i Class Reference

Inheritance diagram for OSB_CORBA::IpGroupWriter_i:

Inheritance graph
[legend]
Collaboration diagram for OSB_CORBA::IpGroupWriter_i:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition of the IpGroupWiter_i interface.

This interface provides both read and write access to the IP group.

Definition at line 147 of file ipgroup_i.h.

Public Member Functions

Static Public Attributes

Private Member Functions

Private Attributes


Constructor & Destructor Documentation

OSB_CORBA::IpGroupWriter_i::IpGroupWriter_i ( NetworkManager_i nmgri,
const OSB_LIB::IpGroup ipg 
)

Constructor.


Member Function Documentation

virtual void OSB_CORBA::IpGroupWriter_i::addIp4 ( const ResourceId &  id,
corba::res::Direction  dir,
const Date &  start,
CORBA::Boolean  noWait 
) throw (OsbCorbaException) [virtual]

Add IP4 address to the list of IP group.

Updates database as well. commitChanges() is not required after this function is called.

Parameters:
id Id of IP4 address to be added.
start Start date of assignment period.
dir Direction of the assignment to add.
noWait Set to true if waiting is desired when lock is already acquired by others. If waiting is not desired, set flag to true.
Exceptions:
OsbCorbaException 
  • set/unset IP4 address fails.

virtual void OSB_CORBA::IpGroupWriter_i::delIp4 ( const ResourceId &  id,
corba::res::Direction  dir,
CORBA::Boolean  noWait 
) throw (OsbCorbaException) [virtual]

Delete IP4 address from list of the IP group.

Updates database as well. commitChanges() is not required after this function is called.

Parameters:
id Id of IP4 address to be removed.
dir Direction of the assignment to remove.
noWait Set to true if waiting is desired when lock is already acquired by others. If waiting is not desired, set flag to true.
Exceptions:
OsbCorbaException 
  • remove IP4 address fails.

IpGroup_i::IpgList::Rg OSB_CORBA::IpGroupWriter_i::lockIpg (  )  const [private, virtual]

Overrides the lockIpg() method of IpGroup_i.

Returns:
A readguard containing the local copy of IP group.

Reimplemented from OSB_CORBA::IpGroup_i.

OSB_LIB::Resource& OSB_CORBA::IpGroupWriter_i::resource (  )  [private, virtual]

Write access to the resource.

Implements OSB_CORBA::ResourceWriter_i.

virtual void OSB_CORBA::IpGroupWriter_i::setDesc ( const Utf8String &  desc  )  throw (CORBA::SystemException) [virtual]

Sets the description of IP group.

bool OSB_CORBA::IpGroupWriter_i::writeToList ( bool  isNew  )  const [private, virtual]

Store the resource in the appropriate resource list.

Parameters:
isNew Flag if the resource was just created (true) or updated (false).
Returns:
true if successful, else false.
The standard implementation of the function just replaces the resource in the list:
          bool E164ResourceWriter_i::writeToList(
              bool // not used: isNew
          ) const
          {
              return nmgri_.getE164List().replace(e164_);
          }

Implements OSB_CORBA::ResourceWriter_i.


Member Data Documentation

const std::string OSB_CORBA::IpGroupWriter_i::IFC [static]

String representation for IpGroupWriter_i.

Reimplemented from OSB_CORBA::IpGroup_i.

Definition at line 154 of file ipgroup_i.h.

OSB_LIB::IpGroup OSB_CORBA::IpGroupWriter_i::ipg_ [private]

Own copy of IP group.

Definition at line 225 of file ipgroup_i.h.


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