CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
WriteDQMSummaryIntoOMDS.h
Go to the documentation of this file.
1 #ifndef WRITEDQMSUMMARYINTOOMDS_H
2 #define WRITEDQMSUMMARYINTOOMDS_H
3 
4 /*
5  * \class WriteDQMSummaryIntoRDB
6  *
7  * write data from DQM summary file into OMDS (relational db) using Coral
8  *
9  * further feature provided: dropping table and reading columns to std
10  *
11  * \author Michele de Gruttola (degrutto) - INFN Naples (June-12-2008)
12  *
13 */
14 
15 #include "TestBase.h"
16 #include "CoralBase/TimeStamp.h"
17 
18 struct Item {
19  Item(){}
20  ~Item(){}
21  int m_run;
24  float m_status;
25 
26  };
27 
28  typedef std::vector<Item>::const_iterator ItemIterator;
29 
30 
31 class WriteDQMSummaryIntoOMDS : virtual public TestBase
32 {
33 public:
35  const std::string& connectionString,
36  const std::string& user,
37  const std::string& pass);
38 
39  virtual ~WriteDQMSummaryIntoOMDS();
40  void run();
41  std::vector<Item> readData(const std::string & file );
42  void dropTable(const std::string & table );
43  void dropView(const std::string & view );
44  void writeData(const std::string & tableToRead );
45 
46 
47 
48 
49 private:
50  std::vector<Item> m_itemvec;
51 
55 
57 
61 };
62 
63 #endif
void writeData(const std::string &tableToRead)
std::string m_reportcontent
WriteDQMSummaryIntoOMDS(const std::string &connectionString, const std::string &user, const std::string &pass)
std::string m_subsystem
void dropView(const std::string &view)
std::vector< Item >::const_iterator ItemIterator
std::vector< Item > readData(const std::string &file)
#define table(NAME)
Definition: DbCore.h:49
void dropTable(const std::string &table)