00001
00002
00003 #include "BaBar/BaBar.hh"
00004
00005
00006
00007
00008
00009
00010 #include "CdbBdb/CdbBdbObject.hh"
00011
00012 #include "CdbBase/Cdb.hh"
00013
00014 CdbBdbObject::CdbBdbObject( const CdbConditionPtr& theConditionPtr,
00015 const BdbTime& theBeginOriginalValidity,
00016 const BdbTime& theEndOriginalValidity,
00017 const BdbTime& theBeginValidity,
00018 const BdbTime& theEndValidity,
00019 const BdbTime& theBeginDuration,
00020 const BdbTime& theEndDuration,
00021 const BdbTime& theInsertionTime,
00022 const BdbHandle(BdbObject)& thePersObj ) :
00023 CdbObject( theConditionPtr,
00024 theBeginOriginalValidity,
00025 theEndOriginalValidity,
00026 theBeginValidity,
00027 theEndValidity,
00028 theBeginDuration,
00029 theEndDuration,
00030 theInsertionTime ),
00031 _objectRef(thePersObj)
00032 { }
00033
00034 CdbBdbObject::~CdbBdbObject( )
00035 { }
00036
00037 const BdbRef(BdbObject)&
00038 CdbBdbObject::objectRef( ) const
00039 {
00040 return _objectRef;
00041 }
00042
00043 std::string
00044 CdbBdbObject::id( ) const
00045 {
00046 return _objectRef.sprint( );
00047 }
00048
00049 std::string
00050 CdbBdbObject::legacyId( ) const
00051 {
00052 return "";
00053 }
00054
00055 std::string
00056 CdbBdbObject::type( ) const
00057 {
00058 return _objectRef.typeName( );
00059 }
00060
00061
00062
00063