OSB_CORBA::TariffCatalogue_i Class Reference

Inheritance diagram for OSB_CORBA::TariffCatalogue_i:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

Implementation of the CORBA interface TariffCatalogue.

The implementation uses the OSB_LIB::TariffCatalogue from the singleton class OSB_LIB::TcatMgr together with a OSB_LIB::TcatLockManager which is defined in the anonymous namespace of the implementation.

Attention:
Any application using the tariff catalogue should call read() during the initialization phase.
Note:
A initialization class sets the lock manager for the tariff catalogue: there is no need to do this in the client of TariffCatalogue_i.

The current implementation is state-less. Therefore it is perfectly legal to define and use local variables of the class as shown in the example below.

      ConnectionPt* NetworkManager_i::getConnectionPt(
          const ConnectionPtId& cpId
      ) throw (CORBA::SystemException, OsbCorbaException)
      {
          TariffCatalogue_i tcat;
          return tcat.getConnectionPt(cpId);
      }

Definition at line 88 of file tariffcatalogue_i.h.

Public Member Functions

Support for service elements:
Support for connection points:
Support for tariff systems:

Static Public Attributes


Constructor & Destructor Documentation

OSB_CORBA::TariffCatalogue_i::TariffCatalogue_i (  ) 

Empty default constructor.


Member Function Documentation

virtual ConnectionPt* OSB_CORBA::TariffCatalogue_i::getConnectionPt ( const ConnectionPtId &  cpId  )  throw (CORBA::SystemException, OsbCorbaException) [virtual]

Get a connection point.

Parameters:
cpId Unique id of a connnection point.
Exceptions:
OsbCorbaException if the connection point for cpId does not exist in the catalogue.
Returns:
Pointer to the connection point for cpId.

virtual ConnectionPtSeq* OSB_CORBA::TariffCatalogue_i::getConnectionPts (  )  throw (CORBA::SystemException) [virtual]

Get list of connection points in the catalogue.

virtual ServiceElement OSB_CORBA::TariffCatalogue_i::getServiceElement ( const ServiceElementId &  seId  )  throw (CORBA::SystemException, OsbCorbaException) [virtual]

Get a service element.

Parameters:
seId Unique id of a service element.
Exceptions:
OsbCorbaException if the service element for seId does not exist in the catalogue.
Returns:
Pointer to the service element for seId.

virtual ServiceElementSeq* OSB_CORBA::TariffCatalogue_i::getServiceElements (  )  throw (CORBA::SystemException) [virtual]

Get list of tariff systems from the catalogue.

virtual TariffSystem* OSB_CORBA::TariffCatalogue_i::getTariffSystem ( const TariffSystemId &  tsId  )  throw (CORBA::SystemException, OsbCorbaException) [virtual]

Get a tariff system.

Parameters:
tsId Unique id of a tariff system.
Exceptions:
OsbCorbaException if the tariff system for tsId does not exist in the catalogue.
Returns:
Pointer to the tariff system for tsId.

virtual TariffSystemSeq* OSB_CORBA::TariffCatalogue_i::getTariffSystems (  )  throw (CORBA::SystemException) [virtual]

Get list of tariff systems in the catalogue.

void OSB_CORBA::TariffCatalogue_i::read ( OSB_DB::Session session  ) 

Read the tariff catalogue from the database.

Parameters:
session Database session to use.
Exceptions:
OsbCorbaException in case of a database error or if the (logical) construction of the tariff catalogue fails.


Member Data Documentation

const char* OSB_CORBA::TariffCatalogue_i::IFC [static]

Definition at line 92 of file tariffcatalogue_i.h.


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