Belle II Software development
DAQLogDB.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8#ifndef _Belle2_DAQLogDB_h
9#define _Belle2_DAQLogDB_h
10
11#include <daq/slc/database/DAQLogMessage.h>
12#include <daq/slc/database/DBInterface.h>
13
14#include <vector>
15
16namespace Belle2 {
22 typedef std::vector<DAQLogMessage> DAQLogMessageList;
23
24 class DAQLogDB {
25
26 public:
27 static bool createLog(DBInterface& db,
28 const std::string& tablename,
29 const DAQLogMessage& log);
30 static DAQLogMessageList getLogs(DBInterface& db,
31 const std::string& tablename,
32 const std::string& nodename = "",
33 int max = 0);
34 static DAQLogMessageList getLogs(DBInterface& db,
35 const std::string& tablename,
36 const std::string& nodename,
37 const std::string& begin_date,
38 const std::string& end_date,
39 int max, int priority);
40 };
41
43}
44
45#endif
Abstract base class for different kinds of events.