test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DBInterface.h
Go to the documentation of this file.
1 //
2 // Gena Kukartsev (Brown), Feb. 1, 2008
3 //
4 // inspired by Fedor Ratnikov's HcalDbOnline class
5 //
6 #ifndef DBInterface_h
7 #define DBInterface_h
8 
9 #include <memory>
10 
19 namespace oracle {
20  namespace occi {
21  class Environment;
22  class Connection;
23  class Statement;
24  }
25 }
26 
28  public:
29 
30  DBInterface (const std::string& fDb, bool fVerbose = false);
31  ~DBInterface ();
32 
33  protected:
34  oracle::occi::Environment* mEnvironment;
35  oracle::occi::Connection* mConnect;
36  oracle::occi::Statement* mStatement;
37  template <class T> bool getObjectGeneric (T* fObject, const std::string& fTag);
38  bool mVerbose;
39 };
40 #endif
bool mVerbose
Definition: DBInterface.h:38
oracle::occi::Statement * mStatement
Definition: DBInterface.h:36
bool getObjectGeneric(T *fObject, const std::string &fTag)
Gather data from DB.
Definition: DBInterface.h:27
DBInterface(const std::string &fDb, bool fVerbose=false)
Definition: DBInterface.cc:16
oracle::occi::Connection * mConnect
Definition: DBInterface.h:35
oracle::occi::Environment * mEnvironment
Definition: DBInterface.h:34
long double T