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

CdbBdbSRevisionP Class Reference

The persistent incarnation for a revision. More...

Inheritance diagram for CdbBdbSRevisionP:

BdbPersObj List of all members.

Public Member Functions

 CdbBdbSRevisionP ()
 Default constructor.

 CdbBdbSRevisionP (const BdbTime &theId, const char *theName, const BdbRef(CdbBdbSViCollectionP)&theCollectionRef, const BdbTime &theCreationTime, const char *theDescription)
 Normal constructor.

virtual ~CdbBdbSRevisionP ()
BdbTime id () const
 Get revision identifier.

 ooString (32) name() const
 Get revision name.

 BdbRef (CdbBdbSViCollectionP) collection() const
 Get collection of "visible" intervals.

BdbTime created () const
 Get revision creation time.

 ooString (32) description() const
 Get revision name.


Detailed Description

The persistent incarnation for a revision.

Definition at line 14 of file CdbBdbSRevisionP.ddl.


Constructor & Destructor Documentation

CdbBdbSRevisionP::CdbBdbSRevisionP  
 

Default constructor.

It can only be used to construct the "TOPMOST" revisions. The only optional parameter is used when the newely created collection of topmost intervals should be cloned from the specified one. This is the special case.

This constructor will also create an empty collection of visible intervals.

Definition at line 15 of file CdbBdbSRevisionP.cc.

References CdbBdbSViCollectionP.

CdbBdbSRevisionP::CdbBdbSRevisionP const BdbTime   theId,
const char *    theName,
const BdbRef(CdbBdbSViCollectionP)&    theCollectionRef,
const BdbTime   theCreationTime,
const char *    theDescription
 

Normal constructor.

This constructor is used to construct regular (non-topmost) revisions with specified identification and a collection of visible intervals. The constructor will invoke a "clone" method against the passed collection to make its own copy.

The revision identifiers must be meaningfull, which means that the identifier must differ from the "minusInfinity" and "plusInfinity" (this one can be used to identify topmost revisions), and the name must be non-zero pointer.

The revision description must be a valid pointer.

Any violation of the above mentioned conditions would cause either deliberate assertion and application crash in the constructor.

Parameters:
theId  The revision identifier
theName  The revision name
theCollectionRef  The collection of "visible" intervals
theCreationTime  When this revision is created
theDescription  The revision description

Definition at line 26 of file CdbBdbSRevisionP.cc.

References CdbBdbSTimeLineP< V >::clone().

CdbBdbSRevisionP::~CdbBdbSRevisionP   [virtual]
 

Definition at line 51 of file CdbBdbSRevisionP.cc.


Member Function Documentation

CdbBdbSRevisionP::BdbRef CdbBdbSViCollectionP    const
 

Get collection of "visible" intervals.

BdbTime CdbBdbSRevisionP::created   const
 

Get revision creation time.

This time may differ from the revision identifier if the revision is created "back in time".

Definition at line 75 of file CdbBdbSRevisionP.cc.

BdbTime CdbBdbSRevisionP::id   const
 

Get revision identifier.

This identifier must be equal or greater of the insertion time of any intervals in the revision's collection of 'visible intervals".

The returned value may be equal to "plusInfinity" in case if the object was constructed using default constructor ("TOPMOST" revision).

Definition at line 57 of file CdbBdbSRevisionP.cc.

Referenced by CdbBdbSRevCollectionP::insert().

CdbBdbSRevisionP::ooString 32    const
 

Get revision name.

This name is guaranteed to be a non-zero string.

CdbBdbSRevisionP::ooString 32    const
 

Get revision name.

This name is guaranteed to be a non-zero string.


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