OSB_CORBA::TrunkResourceWriter_i Class Reference

Inheritance diagram for OSB_CORBA::TrunkResourceWriter_i:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition of the TrunkResourceWiter_i interface.

This interface provides both read and write access to the trunk resource.

Definition at line 141 of file trunkresource_i.h.

Public Member Functions

Static Public Attributes

Protected Member Functions

Private Attributes


Constructor & Destructor Documentation

OSB_CORBA::TrunkResourceWriter_i::TrunkResourceWriter_i ( NetworkManager_i nmgri,
const OSB_LIB::TrunkResource tr 
)

Constructor.


Member Function Documentation

void OSB_CORBA::TrunkResourceWriter_i::addTrkGroup ( const TrunkGroupId &  id,
const Date &  start,
CORBA::Boolean  noWait 
) throw (OsbCorbaException)

Add trunk group to the list of trunk resource.

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

Parameters:
id Id of trunk group to be added.
start Start date of assignment period.
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 trunk group fails.

void OSB_CORBA::TrunkResourceWriter_i::delTrkGroup ( const TrunkGroupId &  id,
CORBA::Boolean  noWait 
) throw (OsbCorbaException)

Delete trunk group from list of the trunk resouce.

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

Parameters:
id Id of trunk group to be removed.
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 trunk group fails.

TrunkResource_i::TrList::Rg OSB_CORBA::TrunkResourceWriter_i::lockTr (  )  const [protected, virtual]

Overrides the lockTr() method of TrunkResource_i.

Returns:
A readguard containing the local copy of trunk resource.

Reimplemented from OSB_CORBA::TrunkResource_i.

OSB_LIB::Resource& OSB_CORBA::TrunkResourceWriter_i::resource (  )  [protected, virtual]

Write access to the resource.

Implements OSB_CORBA::ResourceWriter_i.

void OSB_CORBA::TrunkResourceWriter_i::setDesc ( const Utf8String &  desc  )  throw (CORBA::SystemException)

Sets the description of trunk resource.

void OSB_CORBA::TrunkResourceWriter_i::setExtNetwork ( const NetworkId &  id  )  throw (CORBA::SystemException, SameNetwork, TrunksAssigned, StatusIsAssigned)

Sets the external network of trunk resource.

bool OSB_CORBA::TrunkResourceWriter_i::writeToList ( bool  isNew  )  const [protected, 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::TrunkResourceWriter_i::IFC [static]

String representation for TrunkResourceWriter_i.

Reimplemented from OSB_CORBA::ResourceWriter_i.

Definition at line 148 of file trunkresource_i.h.

OSB_LIB::TrunkResource OSB_CORBA::TrunkResourceWriter_i::tr_ [private]

Own copy of trunk resource.

Definition at line 221 of file trunkresource_i.h.


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