Bdb packages | Design docs | Source docs | Guidelines | Recent releases

Search | Site Map .

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

CdbBdbSRevisionP Class Reference
[CdbBdbShared]

Inheritance diagram for CdbBdbSRevisionP:

BdbPersObj List of all members.

Public Methods

 CdbBdbSRevisionP (ooInternalObj iobj)
 Special constructor (NOT IMPLEMENTED).

 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.


Private Methods

 ooString (32) _name
 BdbRef (CdbBdbSViCollectionP) _collectionRef
 The collection of "visible" intervals.

 ooString (32) _description

Private Attributes

BdbTime _id
 The revision's identifiers.

BdbTime _created

Constructor & Destructor Documentation

CdbBdbSRevisionP::CdbBdbSRevisionP ooInternalObj    iobj [inline]
 

Special constructor (NOT IMPLEMENTED).

WARNING: This constructor is defined to avoid automatically generated constructor from Objectivity, which will break the compilation due to missing default constructor of BdbTime class.

Definition at line 50 of file CdbBdbSRevisionP.ddl.

References _id.

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 12 of file CdbBdbSRevisionP.cc.

References BdbIsNull, and 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 23 of file CdbBdbSRevisionP.cc.

References BdbIsNull, CdbBdbSTimeLineP< V >::clone(), BdbTime::minusInfinity, BdbTime::plusInfinity, and CdbStatus::Success.

CdbBdbSRevisionP::~CdbBdbSRevisionP   [virtual]
 

Definition at line 48 of file CdbBdbSRevisionP.cc.

References BdbDelete.


Member Function Documentation

CdbBdbSRevisionP::BdbRef CdbBdbSViCollectionP    [private]
 

The collection of "visible" intervals.

CdbBdbSRevisionP::BdbRef CdbBdbSViCollectionP    const
 

Get collection of "visible" intervals.

BdbTime CdbBdbSRevisionP::created  
 

Get revision creation time.

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

Definition at line 72 of file CdbBdbSRevisionP.cc.

References _created.

BdbTime CdbBdbSRevisionP::id  
 

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 54 of file CdbBdbSRevisionP.cc.

References _id.

Referenced by CdbBdbSRevCollectionP::insert(), and CdbBdbSRevCollectionP::insertIntoTimeLine().

CdbBdbSRevisionP::ooString 32    [private]
 

CdbBdbSRevisionP::ooString 32    [private]
 

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.


Member Data Documentation

BdbTime CdbBdbSRevisionP::_created [private]
 

Definition at line 145 of file CdbBdbSRevisionP.ddl.

Referenced by created().

BdbTime CdbBdbSRevisionP::_id [private]
 

The revision's identifiers.

Definition at line 136 of file CdbBdbSRevisionP.ddl.

Referenced by CdbBdbSRevisionP(), and id().


The documentation for this class was generated from the following files:

 


BaBar Public Site | SLAC | News | Links | Who's Who | Contact Us

Page Owner: Jacek Becla
Last Update: October 04, 2002