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

CdbRooTObjectFactory.cc

Go to the documentation of this file.
00001 // File and Version Information:
00002 //      $Id: CdbRooTObjectFactory.cc,v 1.1 2005/09/15 05:10:39 gapon Exp $
00003 
00004 /// The implementation of the CdbRooTObjectFactory class.
00005 /**
00006   * @see CdbRooTObjectFactory
00007   */
00008 #include "BaBar/BaBar.hh"
00009 
00010 #include "CdbRoo/CdbRooTObjectFactory.hh"
00011 
00012 template< class T, class R >
00013 CdbRooTObjectFactory<T,R>::~CdbRooTObjectFactory( )
00014 { }
00015 
00016 template< class T, class R >
00017 CdbRooTObjectFactory<T,R>::CdbRooTObjectFactory( T transient ) :
00018     _transient(transient)
00019 { }
00020 
00021 template< class T, class R >
00022 CdbStatus
00023 CdbRooTObjectFactory<T,R>::doCreate( CdbRooObjectR*& theProductPtr )
00024 {
00025     theProductPtr = new R( _transient );
00026     if( 0 == theProductPtr ) return CdbStatus::Error;
00027     return CdbStatus::Success;
00028 }
00029 
00030 /////////////////
00031 // End Of File //
00032 /////////////////

Generated on Mon Dec 5 18:22:11 2005 for CDB by doxygen1.3-rc3