Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:22:49

0001 #ifndef GUARD_condbon_H
0002 #define GUARD_condbon_H
0003 
0004 #include <cstdlib>
0005 #include <iostream>
0006 #include <sstream>
0007 #include "OnlineDB/Oracle/interface/Oracle.h"
0008 #include <string>
0009 #include <ctime>
0010 #include <cstdlib>
0011 #include <cstdio>
0012 #include "CondFormats/CSCObjects/interface/CSCobject.h"
0013 
0014 #include <vector>
0015 #include <map>
0016 
0017 class condbon {
0018 private:
0019   oracle::occi::Environment *env;
0020   oracle::occi::Connection *con;
0021   oracle::occi::Statement *stmt, *stmt1;
0022 
0023 public:
0024   /**
0025    * Constructor for condbon
0026    */
0027   condbon() noexcept(false);
0028   /**
0029    * Destructor for condbon
0030    */
0031   ~condbon() noexcept(false);
0032   /* time should be given in format like "Fri May 26 16:55:51 2006" */
0033   void cdbon_write(CSCobject *obj, std::string obj_name, int record, int global_run, std::string time);
0034   void cdbon_last_record(std::string obj_name, int *record);
0035   void cdbon_read_rec(std::string obj_name, int record, CSCobject *obj);
0036 
0037 };  // end of class condbon
0038 #endif