Belle II Software  release-05-01-25
DAQLogDB.h
1 #ifndef _Belle2_DAQLogDB_h
2 #define _Belle2_DAQLogDB_h
3 
4 #include <daq/slc/database/DAQLogMessage.h>
5 #include <daq/slc/database/DBInterface.h>
6 
7 #include <vector>
8 
9 namespace Belle2 {
15  typedef std::vector<DAQLogMessage> DAQLogMessageList;
16 
17  class DAQLogDB {
18 
19  public:
20  static bool createLog(DBInterface& db,
21  const std::string& tablename,
22  const DAQLogMessage& log);
23  static DAQLogMessageList getLogs(DBInterface& db,
24  const std::string& tablename,
25  const std::string& nodename = "",
26  int max = 0);
27  static DAQLogMessageList getLogs(DBInterface& db,
28  const std::string& tablename,
29  const std::string& nodename,
30  const std::string& begin_date,
31  const std::string& end_date,
32  int max, int priority);
33  };
34 
36 }
37 
38 #endif
Belle2::DAQLogMessage
Definition: DAQLogMessage.h:16
Belle2::DAQLogDB
Definition: DAQLogDB.h:17
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::DBInterface
Definition: DBInterface.h:19