OSB_LIB::SeTree Class Reference

Collaboration diagram for OSB_LIB::SeTree:

Collaboration graph
[legend]
List of all members.

Detailed Description

Service element tree represents the hierarchy of the available service elements.

Service element can be placed into groups or hierarchy. This class is used to store the information of the hierarchy.

Definition at line 295 of file service.h.

Public Types

Public Member Functions

Private Types

Private Attributes


Member Typedef Documentation

typedef std::map<ServiceElement::Oid, ServiceElement> OSB_LIB::SeTree::Elements

STL container for service elements: official list.

Definition at line 298 of file service.h.

typedef std::set<ServiceElement> OSB_LIB::SeTree::SeList [private]

STL container to look-up service elements by type and code.

Definition at line 301 of file service.h.


Member Function Documentation

const Elements& OSB_LIB::SeTree::elements (  )  const

Get list of all elements.

const ServiceElement* OSB_LIB::SeTree::findServiceElement ( const ServiceElement::Oid seId  )  const

Find a service element by its id.

Parameters:
seId Object id of service element to find.
Returns:
A pointer to the service element in elements(), return 0 if not found.

const ServiceElement* OSB_LIB::SeTree::findServiceElement ( const ServiceElement se  )  const

Find a service element by its type and code.

Parameters:
se Service element to find.
Returns:
A pointer to the service element in elements(), return 0 if not found.

const ServiceElement& OSB_LIB::SeTree::getServiceElement ( const ServiceElement::Oid seId  )  const

Get a service element with a given oid.

Parameters:
seId Object id of service element to find.
Returns:
A reference to the service element in elements().
Exceptions:
ObjectNotFound if no service element for seId exists.

void OSB_LIB::SeTree::read ( const OSB_DB::Session session  ) 

Read service elements from database.

Parameters:
session Database session to use.


Member Data Documentation

Elements OSB_LIB::SeTree::elements_ [private]

Official list of service elements.

Definition at line 349 of file service.h.

SeList OSB_LIB::SeTree::seList_ [private]

Look-up list by service element type and code.

Definition at line 351 of file service.h.


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