BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
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
17
class
ElogTrigger
18
{
19
private
:
20
/* GENERATED PRIVATE MEMBERS (SHOULD NOT BE CHANGED MANUALLY) */
21
/// connection to the database
22
ElogConnection
*
connectionDB
;
23
24
/// trigger id
25
int
i_trigger_id
;
26
/// trigger info
27
TString
str_trigger_info
;
28
/// is active
29
bool
b_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
61
TString
GetTriggerInfo
() {
return
str_trigger_info
; }
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
75
ClassDef
(
ElogTrigger
, 1);
76
};
77
78
#endif
ClassDef
#define ClassDef(name, id)
TDatime.h
TString.h
ElogConnection
Definition
ElogConnection.h:27
ElogTrigger
ElogTrigger.h Class for the table: trigger_.
Definition
ElogTrigger.h:18
ElogTrigger::PrintAll
static int PrintAll()
print all triggers
Definition
ElogTrigger.cxx:330
ElogTrigger::SetTriggerInfo
int SetTriggerInfo(TString trigger_info)
set trigger info of the current trigger
Definition
ElogTrigger.cxx:373
ElogTrigger::CheckTriggerExists
static int CheckTriggerExists(int trigger_id)
check trigger exists in the database: 1- true, 0 - false, <0 - database operation error
Definition
ElogTrigger.cxx:190
ElogTrigger::connectionDB
ElogConnection * connectionDB
connection to the database
Definition
ElogTrigger.h:22
ElogTrigger::GetTrigger
static ElogTrigger * GetTrigger(int trigger_id)
get trigger from the database
Definition
ElogTrigger.cxx:94
ElogTrigger::DeleteTrigger
static int DeleteTrigger(int trigger_id)
delete trigger from the database
Definition
ElogTrigger.cxx:270
ElogTrigger::Print
void Print()
print information about current trigger
Definition
ElogTrigger.cxx:438
ElogTrigger::i_trigger_id
int i_trigger_id
trigger id
Definition
ElogTrigger.h:25
ElogTrigger::GetIsActive
bool GetIsActive()
get is active of the current trigger
Definition
ElogTrigger.h:63
ElogTrigger::~ElogTrigger
virtual ~ElogTrigger()
Definition
ElogTrigger.cxx:26
ElogTrigger::CreateTrigger
static ElogTrigger * CreateTrigger(TString trigger_info, bool is_active)
add new trigger to the database
Definition
ElogTrigger.cxx:33
ElogTrigger::GetTriggerInfo
TString GetTriggerInfo()
get trigger info of the current trigger
Definition
ElogTrigger.h:61
ElogTrigger::str_trigger_info
TString str_trigger_info
trigger info
Definition
ElogTrigger.h:27
ElogTrigger::GetTriggerId
int GetTriggerId()
get trigger id of the current trigger
Definition
ElogTrigger.h:59
ElogTrigger::SetIsActive
int SetIsActive(bool is_active)
set is active of the current trigger
Definition
ElogTrigger.cxx:405
ElogTrigger::ElogTrigger
ElogTrigger(ElogConnection *db_connect, int trigger_id, TString trigger_info, bool is_active)
Definition
ElogTrigger.cxx:16
ElogTrigger::b_is_active
bool b_is_active
is active
Definition
ElogTrigger.h:29
TString
ElogConnection.h
database
elog_db
ElogTrigger.h
Generated on
for BmnRoot by
1.17.0