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  

/CdbBdbShared/CdbBdbSRevision.cc

Go to the documentation of this file.
00001 /// The implementation of the CdbBdbSRevision class.
00002 /**
00003   * @see CdbBdbSRevision
00004   */
00005 
00006 #include "BaBar/BaBar.hh"
00007 
00008 #include "CdbBdbShared/CdbBdbSRevision.hh"
00009 
00010 #include <assert.h>
00011 
00012 CdbBdbSRevision::CdbBdbSRevision( const CdbConditionPtr&          thePtr,
00013                                   const BdbRef(CdbBdbSRevisionP)& theRef ) :
00014     CdbRevision(thePtr)
00015 {
00016     assert( !BdbIsNull(theRef));
00017     _revisionH = theRef;    // Do it in here to avoid pinning the handles
00018 }
00019 
00020 CdbBdbSRevision::~CdbBdbSRevision( )
00021 { }
00022 
00023 BdbTime
00024 CdbBdbSRevision::id( ) const
00025 {
00026     return _revisionH->id( );
00027 }
00028 
00029 std::string
00030 CdbBdbSRevision::name( ) const
00031 {
00032     return std::string( _revisionH->name( ).head( ));
00033 }
00034 
00035 BdbTime
00036 CdbBdbSRevision::created( ) const
00037 {
00038     return _revisionH->created( );
00039 }
00040 
00041 std::string
00042 CdbBdbSRevision::description( ) const
00043 {
00044     return std::string( _revisionH->description( ).head( ));
00045 }
00046 
00047 /////////////////
00048 // End Of File //
00049 /////////////////

 


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

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