00001 // File and Version Information: 00002 // $Id: CdbBdbTObjectFactory.cc,v 1.4 2004/08/06 05:54:18 bartoldu Exp $ 00003 #include "BaBar/BaBar.hh" 00004 00005 /// The implementation of the CdbBdbTObjectFactory class. 00006 /** 00007 * @see CdbBdbTObjectFactory 00008 */ 00009 00010 #include "CdbBdb/CdbBdbTObjectFactory.hh" 00011 00012 template< class T, class P > 00013 CdbBdbTObjectFactory<T,P>::~CdbBdbTObjectFactory( ) 00014 { } 00015 00016 template< class T, class P > 00017 CdbBdbTObjectFactory<T,P>::CdbBdbTObjectFactory( T transient ) : 00018 _transient(transient) 00019 { } 00020 00021 template< class T, class P > 00022 CdbStatus 00023 CdbBdbTObjectFactory<T,P>::doCreate( BdbHandle(BdbObject)& theProduct, 00024 const BdbRefAny& theHint ) 00025 { 00026 theProduct = new( theHint ) P( _transient ); 00027 if( BdbIsNull( theProduct )) return CdbStatus::Error; 00028 return CdbStatus::Success; 00029 } 00030 00031 ///////////////// 00032 // End Of File // 00033 /////////////////
1.3-rc3