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

CdbBdbSPartitionBaseP Class Reference

A base class for a persistent "partition" class. More...

Inheritance diagram for CdbBdbSPartitionBaseP:

CdbBdbSCollectionElementP BdbPersObj CdbBdbSPartitionP List of all members.

Public Member Functions

virtual ~CdbBdbSPartitionBaseP ()
 Destructor.

 ooString (32) description() const
BdbTime created () const
CdbBdbSCell cell () const
bool isClosed () const
 Check if the partition is closed.

virtual void dump (std::ostream &o) const
 Dump the contents of the object.


Protected Member Functions

 CdbBdbSPartitionBaseP (d_UShort theId, const char *theDescription, const BdbTime &theCreationTime, const CdbBdbSCell &theCell)
 Normal constructor.

CdbStatus closeCell (const BdbTime &theTime)
 Close the partition at specified point of the INSERTION timeline.


Detailed Description

A base class for a persistent "partition" class.

This class is iused in the context of the "PartitionLayout" collection.

Definition at line 18 of file CdbBdbSPartitionBaseP.ddl.


Constructor & Destructor Documentation

CdbBdbSPartitionBaseP::CdbBdbSPartitionBaseP d_UShort    theId,
const char *    theDescription,
const BdbTime   theCreationTime,
const CdbBdbSCell   theCell
[protected]
 

Normal constructor.

NOTE: Partitions do not have names.

Parameters:
theId  the identifier of the partition
theDescription  the description of the partition
theCreationTime  the time when the partition is supposed to be created
theCell  the cell (area) occupied by the partition in 2-dimension space

Definition at line 19 of file CdbBdbSPartitionBaseP.cc.

CdbBdbSPartitionBaseP::~CdbBdbSPartitionBaseP   [virtual]
 

Destructor.

Definition at line 33 of file CdbBdbSPartitionBaseP.cc.


Member Function Documentation

CdbBdbSCell CdbBdbSPartitionBaseP::cell   const
 

Definition at line 54 of file CdbBdbSPartitionBaseP.cc.

Referenced by CdbBdbSPartitionsLayoutP::insert(), CdbBdbSPartitionP::instantiate(), and CdbBdbSPartitionsLayoutP::update().

CdbStatus CdbBdbSPartitionBaseP::closeCell const BdbTime   theTime [protected]
 

Close the partition at specified point of the INSERTION timeline.

The specified time must be strictly greater than the "bottom" insertion time of the partition.

Definition at line 60 of file CdbBdbSPartitionBaseP.cc.

References CdbBdbSCell::beginInsertion, CdbBdbSCell::close(), CdbBdbSCell::endInsertion, CdbStatus::Error, BdbTime::minusInfinity, BdbTime::plusInfinity, and CdbStatus::Success.

Referenced by CdbBdbSPartitionP::close().

BdbTime CdbBdbSPartitionBaseP::created   const
 

Definition at line 48 of file CdbBdbSPartitionBaseP.cc.

void CdbBdbSPartitionBaseP::dump std::ostream &    o const [virtual]
 

Dump the contents of the object.

Reimplemented in CdbBdbSPartitionP.

Definition at line 104 of file CdbBdbSPartitionBaseP.cc.

References CdbBdbSCell::beginInsertion, CdbBdbSCell::beginValidity, CdbBdbSCell::endInsertion, CdbBdbSCell::endValidity, CdbBdbSCollectionElementP::id(), and isClosed().

Referenced by CdbBdbSPartitionP::dump().

bool CdbBdbSPartitionBaseP::isClosed   const
 

Check if the partition is closed.

Definition at line 37 of file CdbBdbSPartitionBaseP.cc.

References CdbBdbSCell::endInsertion, and BdbTime::plusInfinity.

Referenced by CdbBdbSPartitionP::close(), CdbBdbSPartitionP::createIncrement(), dump(), CdbBdbSPartitionP::instantiate(), and CdbBdbSPartitionP::update().

CdbBdbSPartitionBaseP::ooString 32    const
 

Reimplemented from CdbBdbSCollectionElementP.


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