00001
00002
00003
00004
00005
00006
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
00058