Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

CdbBdbSSimpleClusterP Class Reference

A simple cluster of conditions. More...

Inheritance diagram for CdbBdbSSimpleClusterP:

CdbBdbSClusterP CdbBdbSCollectionElementP BdbPersObj List of all members.

Public Member Functions

 CdbBdbSSimpleClusterP (const char *theName, d_UShort theId, const char *theDescription, const BdbTime &theCreationTime)
 Normal constructor.

virtual ~CdbBdbSSimpleClusterP ()
 Destructor.

d_UShort numIncrements () const
 Get the total number of "increments".

CdbStatus increment (d_UShort theNumber, CdbBdbSIncrement &theIncrement) const
 Get the specified "increment".

CdbStatus createIncrement (const BdbTime &theSplitTime)
 Create new "increment".


Detailed Description

A simple cluster of conditions.

A simple cluster of conditions supports "increments".

Definition at line 14 of file CdbBdbSSimpleClusterP.ddl.


Constructor & Destructor Documentation

CdbBdbSSimpleClusterP::CdbBdbSSimpleClusterP const char *    theName,
d_UShort    theId,
const char *    theDescription,
const BdbTime   theCreationTime
 

Normal constructor.

WARNING: Inappropriate values of the parameters will cause the crash of the constructor to avoid creating disformed persistent data structures.

Parameters:
theName  the name of the cluster
theId  the identifier of the cluster
theDescription  the description of the cluster
theCreationTime  the time when the cluster is supposed to be created

Definition at line 25 of file CdbBdbSSimpleClusterP.cc.

CdbBdbSSimpleClusterP::~CdbBdbSSimpleClusterP   [virtual]
 

Destructor.

Definition at line 35 of file CdbBdbSSimpleClusterP.cc.


Member Function Documentation

CdbStatus CdbBdbSSimpleClusterP::createIncrement const BdbTime   theSplitTime
 

Create new "increment".

The method if successfull will increase the number of increments by one.

Parameters:
theSplitTime  the split time for a new incrementhe increment

Definition at line 53 of file CdbBdbSSimpleClusterP.cc.

References BdbRef(), CdbBdbSIncrementCollection::createIncrement(), CdbStatus::Error, CdbBdbSUtils::findMetaData(), BdbTime::getGmtNsec(), BdbTime::getGmtSec(), CdbBdbSUtils::getLocalDbIdRange(), CdbBdbSCollectionElementP::id(), CdbBdbSClusterP::iterator(), CdbItr< T >::next(), CdbBdbSIncrementCollection::numIncrements(), CdbStatus::Success, and CdbItr< T >::value().

CdbStatus CdbBdbSSimpleClusterP::increment d_UShort    theNumber,
CdbBdbSIncrement   theIncrement
const
 

Get the specified "increment".

The method will return CdbStatus::NotFound if the index is not in a valid range.

Parameters:
theNumber  the number of the increment in question
theIncrement  the value of the increment to be set up

Definition at line 45 of file CdbBdbSSimpleClusterP.cc.

References CdbBdbSIncrementCollection::increment().

d_UShort CdbBdbSSimpleClusterP::numIncrements   const
 

Get the total number of "increments".

Definition at line 39 of file CdbBdbSSimpleClusterP.cc.

References CdbBdbSIncrementCollection::numIncrements().


The documentation for this class was generated from the following files:
Generated on Mon Dec 5 18:22:20 2005 for CDB by doxygen1.3-rc3