CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/CondCore/DBCommon/interface/DbOpenTransaction.h

Go to the documentation of this file.
00001 #ifndef CondCore_DBCommon_DbOpenTransaction_H
00002 #define CondCore_DBCommon_DbOpenTransaction_H
00003 //
00004 // Package:     DBCommon
00005 // Class  :     DbOpenTransaction
00006 // 
00010 //
00011 //
00012 
00013 namespace cond{
00014 
00015   class DbTransaction;
00016   
00017   class DbOpenTransaction {
00018   public:
00019     explicit DbOpenTransaction( cond::DbTransaction& transaction );   
00020     
00021     ~DbOpenTransaction();
00024     void ok();
00025   private:
00026     cond::DbTransaction& m_transaction;
00027     bool m_status;
00028     
00029   };
00030 }
00031 #endif