BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
ElogTrigger.h
Go to the documentation of this file.
1// ----------------------------------------------------------------------
2// ElogTrigger header file
3// Generated 27-11-2017
4// ----------------------------------------------------------------------
5
6/** ElogTrigger.h
7 ** Class for the table: trigger_
8 **/
9
10#ifndef ElogTrigger_H
11#define ElogTrigger_H 1
12
13#include "ElogConnection.h"
14#include "TDatime.h"
15#include "TString.h"
16
18{
19 private:
20 /* GENERATED PRIVATE MEMBERS (SHOULD NOT BE CHANGED MANUALLY) */
21 /// connection to the database
23
24 /// trigger id
26 /// trigger info
28 /// is active
30
31 // Constructor
32 ElogTrigger(ElogConnection* db_connect, int trigger_id, TString trigger_info, bool is_active);
33 /* END OF PRIVATE GENERATED PART (SHOULD NOT BE CHANGED MANUALLY) */
34
35 public:
36 /* GENERATED PUBLIC MEMBERS (SHOULD NOT BE CHANGED MANUALLY) */
37 virtual ~ElogTrigger(); // Destructor
38
39 // static class functions
40 /// add new trigger to the database
41 static ElogTrigger* CreateTrigger(TString trigger_info, bool is_active);
42 /// get trigger from the database
43 static ElogTrigger* GetTrigger(int trigger_id);
44 /// get trigger from the database
45 static ElogTrigger* GetTrigger(TString trigger_info);
46 /// check trigger exists in the database: 1- true, 0 - false, <0 - database operation error
47 static int CheckTriggerExists(int trigger_id);
48 /// check trigger exists in the database: 1- true, 0 - false, <0 - database operation error
49 static int CheckTriggerExists(TString trigger_info);
50 /// delete trigger from the database
51 static int DeleteTrigger(int trigger_id);
52 /// delete trigger from the database
53 static int DeleteTrigger(TString trigger_info);
54 /// print all triggers
55 static int PrintAll();
56
57 // Getters
58 /// get trigger id of the current trigger
59 int GetTriggerId() { return i_trigger_id; }
60 /// get trigger info of the current trigger
62 /// get is active of the current trigger
63 bool GetIsActive() { return b_is_active; }
64
65 // Setters
66 /// set trigger info of the current trigger
67 int SetTriggerInfo(TString trigger_info);
68 /// set is active of the current trigger
69 int SetIsActive(bool is_active);
70
71 /// print information about current trigger
72 void Print();
73 /* END OF PUBLIC GENERATED PART (SHOULD NOT BE CHANGED MANUALLY) */
74
76};
77
78#endif
#define ClassDef(name, id)
ElogTrigger.h Class for the table: trigger_.
Definition ElogTrigger.h:18
static int PrintAll()
print all triggers
int SetTriggerInfo(TString trigger_info)
set trigger info of the current trigger
static int CheckTriggerExists(int trigger_id)
check trigger exists in the database: 1- true, 0 - false, <0 - database operation error
ElogConnection * connectionDB
connection to the database
Definition ElogTrigger.h:22
static ElogTrigger * GetTrigger(int trigger_id)
get trigger from the database
static int DeleteTrigger(int trigger_id)
delete trigger from the database
void Print()
print information about current trigger
int i_trigger_id
trigger id
Definition ElogTrigger.h:25
bool GetIsActive()
get is active of the current trigger
Definition ElogTrigger.h:63
virtual ~ElogTrigger()
static ElogTrigger * CreateTrigger(TString trigger_info, bool is_active)
add new trigger to the database
TString GetTriggerInfo()
get trigger info of the current trigger
Definition ElogTrigger.h:61
TString str_trigger_info
trigger info
Definition ElogTrigger.h:27
int GetTriggerId()
get trigger id of the current trigger
Definition ElogTrigger.h:59
int SetIsActive(bool is_active)
set is active of the current trigger
ElogTrigger(ElogConnection *db_connect, int trigger_id, TString trigger_info, bool is_active)
bool b_is_active
is active
Definition ElogTrigger.h:29