00001 #ifndef GUARD_condbon_H 00002 #define GUARD_condbon_H 00003 00004 #include <cstdlib> 00005 #include <iostream> 00006 #include <sstream> 00007 #include "OnlineDB/Oracle/interface/Oracle.h" 00008 #include <string> 00009 #include <time.h> 00010 #include <stdlib.h> 00011 #include <stdio.h> 00012 #include "CondFormats/CSCObjects/interface/CSCobject.h" 00013 00014 #include <vector> 00015 #include <map> 00016 00017 class condbon 00018 { 00019 private: 00020 00021 oracle::occi::Environment *env; 00022 oracle::occi::Connection *con; 00023 oracle::occi::Statement *stmt, *stmt1; 00024 00025 public : 00029 condbon () throw (oracle::occi::SQLException); 00033 ~condbon () throw (oracle::occi::SQLException); 00034 /* time should be given in format like "Fri May 26 16:55:51 2006" */ 00035 void cdbon_write (CSCobject *obj, std::string obj_name, int record, 00036 int global_run, std::string time); 00037 void cdbon_last_record (std::string obj_name, int *record); 00038 void cdbon_read_rec (std::string obj_name, int record, CSCobject *obj); 00039 00040 }; // end of class condbon 00041 #endif