CMS 3D CMS Logo

DTDBSession.h

Go to the documentation of this file.
00001 #ifndef DTDBSession_H
00002 #define DTDBSession_H
00003 
00014 //----------------------
00015 // Base Class Headers --
00016 //----------------------
00017 
00018 
00019 //------------------------------------
00020 // Collaborating Class Declarations --
00021 //------------------------------------
00022 #include "FWCore/ServiceRegistry/interface/ActivityRegistry.h"
00023 #include "CondCore/DBCommon/interface/DBSession.h"
00024 #include "CondCore/IOVService/interface/IOVService.h"
00025 #include "CondCore/DBCommon/interface/AuthenticationMethod.h"
00026 #include "CondCore/DBCommon/interface/Connection.h"
00027 //#include "CondCore/DBCommon/interface/PoolStorageManager.h"
00028 //#include "CondCore/DBCommon/interface/RelationalStorageManager.h"
00029 #include "CondCore/DBCommon/interface/TypedRef.h"
00030 #include "CondCore/DBCommon/interface/Time.h"
00031 #include "CondCore/MetaDataService/interface/MetaData.h"
00032 #include "CondCore/DBOutputService/interface/serviceCallbackRecord.h"
00033 #include <string>
00034 #include <map>
00035 namespace edm {
00036   class Event;
00037   class EventSetup;
00038   class ParameterSet;
00039 }
00040 namespace cond{
00041   class PoolTransaction;
00042   class Connection;
00043 }
00044 
00045 //---------------
00046 // C++ Headers --
00047 //---------------
00048 #include <string>
00049 
00050 //              ---------------------
00051 //              -- Class Interface --
00052 //              ---------------------
00053 
00054 class DTDBSession {
00055 
00056  public:
00057 
00060   DTDBSession( const std::string& dbFile,
00061                const std::string& dbCatalog,
00062                const std::string& auth_path,
00063                bool siteLocalConfig = false );
00064 
00067   virtual ~DTDBSession();
00068 
00071 
00072   cond::PoolTransaction* poolDB() const;
00073 //  cond::PoolStorageManager* poolDB() const;
00074 
00076   void connect( bool readOnly );
00078   void disconnect();
00079 
00080  private:
00081 
00082   cond::DBSession* m_session;
00083   cond::Connection* m_connection;
00084   cond::PoolTransaction* m_pooldb;
00085 //  cond::PoolStorageManager* m_pooldb;
00086 
00087 };
00088 
00089 
00090 #endif // DTDBSession_H
00091 
00092 
00093 
00094 
00095 
00096 

Generated on Tue Jun 9 17:26:50 2009 for CMSSW by  doxygen 1.5.4