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

CdbNTupleFactory.cc

Go to the documentation of this file.
00001 // File and Version Information:
00002 //      $Id: CdbNTupleFactory.cc,v 1.3 2004/04/02 07:41:27 gapon Exp $
00003 
00004 /// The implementation of the CdbNTupleFactory class.
00005 /**
00006   * @see CdbNTupleFactory
00007   */
00008 
00009 #include "BaBar/BaBar.hh"
00010 
00011 #include "CdbTable/CdbNTupleFactory.hh"
00012 #include "CdbTable/CdbNTupleSimpleImpl.hh"
00013 
00014 template < class T, unsigned int NCOL >
00015 CdbCPtr< CdbNTuple<T,NCOL> >
00016 CdbNTupleFactory<T,NCOL>::createSimple( const std::string& theName,
00017                                         const std::string& theDescription )
00018 {
00019     return CdbCPtr< CdbNTuple<T,NCOL> >( new CdbNTupleSimpleImpl<T,NCOL>( theName,
00020                                                                           theDescription ));
00021 }
00022 
00023 template < class T, unsigned int NCOL >
00024 CdbCPtr< CdbNTuple<T,NCOL> >
00025 CdbNTupleFactory<T,NCOL>::createSimple( const std::vector<std::string>& theCollumnNames,
00026                                         const std::string&              theName,
00027                                         const std::string&              theDescription )
00028 {
00029     return CdbCPtr< CdbNTuple<T,NCOL> >( new CdbNTupleSimpleImpl<T,NCOL>( theCollumnNames,
00030                                                                           theName,
00031                                                                           theDescription ));
00032 }
00033 
00034 template < class T, unsigned int NCOL >
00035 void
00036 CdbNTupleFactory<T,NCOL>::createSimple( CdbNTuple<T,NCOL>*& thePtr,
00037                           const std::string&  theName,
00038                           const std::string&  theDescription )
00039 {
00040     thePtr = new CdbNTupleSimpleImpl<T,NCOL>( theName,
00041                                               theDescription );
00042 }
00043 
00044 template < class T, unsigned int NCOL >
00045 void
00046 CdbNTupleFactory<T,NCOL>::createSimple( CdbNTuple<T,NCOL>*&             thePtr,
00047                           const std::vector<std::string>& theCollumnNames,
00048                           const std::string&              theName,
00049                           const std::string&              theDescription )
00050 {
00051     thePtr = new CdbNTupleSimpleImpl<T,NCOL>( theCollumnNames,
00052                                               theName,
00053                                               theDescription );
00054 }
00055 
00056 /////////////////
00057 // End Of File //
00058 /////////////////

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