CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_9_patch3/src/CaloOnlineTools/HcalOnlineDb/interface/DBInterface.h

Go to the documentation of this file.
00001 //
00002 // Gena Kukartsev (Brown), Feb. 1, 2008
00003 //
00004 // inspired by Fedor Ratnikov's HcalDbOnline class
00005 //
00006 #ifndef DBInterface_h
00007 #define DBInterface_h
00008 
00009 #include <memory>
00010 
00019 namespace oracle {
00020   namespace occi {
00021     class Environment;
00022     class Connection;
00023     class Statement;
00024   }
00025 }
00026 
00027 class DBInterface{
00028  public:
00029 
00030   DBInterface (const std::string& fDb, bool fVerbose = false);
00031   ~DBInterface ();
00032 
00033  protected:
00034   oracle::occi::Environment* mEnvironment;
00035   oracle::occi::Connection* mConnect;
00036   oracle::occi::Statement* mStatement;
00037   template <class T> bool getObjectGeneric (T* fObject, const std::string& fTag);
00038   bool mVerbose;
00039 };
00040 #endif