CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MODCCSHFDat.h
Go to the documentation of this file.
1 #ifndef MODCCSHFDAT_H
2 #define MODCCSHFDAT_H
3 
4 #include <map>
5 #include <stdexcept>
6 
7 #include <string>
8 #include <fstream>
9 #include <iostream>
10 #include <stdio.h>
11 #include <cstring>
12 
14 
18 
19 class MODCCSHFDat : public IDataItem {
20  public:
21  typedef oracle::occi::Clob Clob;
22  friend class EcalCondDBInterface;
23  MODCCSHFDat();
24  ~MODCCSHFDat();
25 
26  // User data methods
27  inline std::string getTable() { return "OD_CCS_HF_DAT"; }
28 
29  inline void setClob(unsigned char* x) { m_clob = x; }
30  inline unsigned char* getClob() const { return m_clob; }
31 
32  inline void setSize(unsigned int id) { m_size = id; }
33  inline unsigned int getSize() const { return m_size; }
34 
35  inline void setTest(int id) { testing = id; }
36  inline int getTest() const { return testing; }
37 
38  void setFile(std::string x) ;
39  inline std::string getFile() const { return m_file; }
40 
41  private:
42  void prepareWrite()
43  throw(std::runtime_error);
44 
45  void writeDB(const EcalLogicID* ecid, const MODCCSHFDat* item, MODRunIOV* iov )
46  throw(std::runtime_error);
47 
49  throw(std::runtime_error);
50 
51  void fetchData(std::map< EcalLogicID, MODCCSHFDat >* fillMap, MODRunIOV* iov)
52  throw(std::runtime_error);
53 
54  // User data
55  unsigned char* m_clob;
56  unsigned int m_size;
57  std::string m_file;
58  int testing;
59  unsigned char* readClob (Clob &clob, int size)
60  throw (std::runtime_error);
61  void populateClob (Clob &clob, std::string fname, unsigned int clob_size)
62  throw (std::runtime_error);
63 
64 
65 
66 };
67 
68 #endif
std::string getFile() const
Definition: MODCCSHFDat.h:39
unsigned char * getClob() const
Definition: MODCCSHFDat.h:30
oracle::occi::Clob Clob
Definition: MODCCSHFDat.h:21
unsigned char * m_clob
Definition: MODCCSHFDat.h:55
void setTest(int id)
Definition: MODCCSHFDat.h:35
void writeDB(const EcalLogicID *ecid, const MODCCSHFDat *item, MODRunIOV *iov)
Definition: MODCCSHFDat.cc:81
tuple iov
Definition: o2o.py:307
void writeArrayDB(const std::map< EcalLogicID, MODCCSHFDat > *data, MODRunIOV *iov)
Definition: MODCCSHFDat.cc:185
void fetchData(std::map< EcalLogicID, MODCCSHFDat > *fillMap, MODRunIOV *iov)
Definition: MODCCSHFDat.cc:142
std::string getTable()
Definition: MODCCSHFDat.h:27
int getTest() const
Definition: MODCCSHFDat.h:36
unsigned int m_size
Definition: MODCCSHFDat.h:56
std::string m_file
Definition: MODCCSHFDat.h:57
void setFile(std::string x)
Definition: MODCCSHFDat.cc:37
void setClob(unsigned char *x)
Definition: MODCCSHFDat.h:29
string const
Definition: compareJSON.py:14
void setSize(unsigned int id)
Definition: MODCCSHFDat.h:32
string fname
main script
unsigned char * readClob(Clob &clob, int size)
Definition: MODCCSHFDat.cc:330
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
void prepareWrite()
Definition: MODCCSHFDat.cc:61
Definition: DDAxes.h:10
unsigned int getSize() const
Definition: MODCCSHFDat.h:33
tuple size
Write out results.
void populateClob(Clob &clob, std::string fname, unsigned int clob_size)
Definition: MODCCSHFDat.cc:258