BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
Loading...
Searching...
No Matches
ElogBeam.h
Go to the documentation of this file.
1
// ----------------------------------------------------------------------
2
// ElogBeam header file
3
// Generated 27-11-2017
4
// ----------------------------------------------------------------------
5
6
/** ElogBeam.h
7
** Class for the table: beam_
8
**/
9
10
#ifndef ElogBeam_H
11
#define ElogBeam_H 1
12
13
#include "
ElogConnection.h
"
14
#include "
TDatime.h
"
15
#include "
TString.h
"
16
17
class
ElogBeam
18
{
19
private
:
20
/* GENERATED PRIVATE MEMBERS (SHOULD NOT BE CHANGED MANUALLY) */
21
/// connection to the database
22
ElogConnection*
connectionDB
;
23
24
/// beam
25
TString
str_beam
;
26
/// is active
27
bool
b_is_active
;
28
29
// Constructor
30
ElogBeam
(
ElogConnection
* db_connect,
TString
beam,
bool
is_active);
31
/* END OF PRIVATE GENERATED PART (SHOULD NOT BE CHANGED MANUALLY) */
32
33
public
:
34
/* GENERATED PUBLIC MEMBERS (SHOULD NOT BE CHANGED MANUALLY) */
35
virtual
~ElogBeam
();
// Destructor
36
37
// static class functions
38
/// add new beam to the database
39
static
ElogBeam
*
CreateBeam
(
TString
beam,
bool
is_active);
40
/// get beam from the database
41
static
ElogBeam
*
GetBeam
(
TString
beam);
42
/// check beam exists in the database: 1- true, 0 - false, <0 - database operation error
43
static
int
CheckBeamExists
(
TString
beam);
44
/// delete beam from the database
45
static
int
DeleteBeam
(
TString
beam);
46
/// print all beams
47
static
int
PrintAll
();
48
49
// Getters
50
/// get beam of the current beam
51
TString
GetBeam
() {
return
str_beam
; }
52
/// get is active of the current beam
53
bool
GetIsActive
() {
return
b_is_active
; }
54
55
// Setters
56
/// set beam of the current beam
57
int
SetBeam
(
TString
beam);
58
/// set is active of the current beam
59
int
SetIsActive
(
bool
is_active);
60
61
/// print information about current beam
62
void
Print
();
63
/* END OF PUBLIC GENERATED PART (SHOULD NOT BE CHANGED MANUALLY) */
64
65
ClassDef
(
ElogBeam
, 1);
66
};
67
68
#endif
ClassDef
#define ClassDef(name, id)
TDatime.h
TString.h
ElogBeam
ElogBeam.h Class for the table: beam_.
Definition
ElogBeam.h:18
ElogBeam::GetBeam
static ElogBeam * GetBeam(TString beam)
get beam from the database
ElogBeam::connectionDB
ElogConnection * connectionDB
connection to the database
Definition
ElogBeam.h:22
ElogBeam::CheckBeamExists
static int CheckBeamExists(TString beam)
check beam exists in the database: 1- true, 0 - false, <0 - database operation error
ElogBeam::GetBeam
TString GetBeam()
get beam of the current beam
Definition
ElogBeam.h:51
ElogBeam::SetBeam
int SetBeam(TString beam)
set beam of the current beam
ElogBeam::DeleteBeam
static int DeleteBeam(TString beam)
delete beam from the database
ElogBeam::CreateBeam
static ElogBeam * CreateBeam(TString beam, bool is_active)
add new beam to the database
ElogBeam::str_beam
TString str_beam
beam
Definition
ElogBeam.h:25
ElogBeam::ElogBeam
ElogBeam(ElogConnection *db_connect, TString beam, bool is_active)
ElogBeam::Print
void Print()
print information about current beam
ElogBeam::PrintAll
static int PrintAll()
print all beams
ElogBeam::GetIsActive
bool GetIsActive()
get is active of the current beam
Definition
ElogBeam.h:53
ElogBeam::SetIsActive
int SetIsActive(bool is_active)
set is active of the current beam
ElogBeam::b_is_active
bool b_is_active
is active
Definition
ElogBeam.h:27
ElogBeam::~ElogBeam
virtual ~ElogBeam()
ElogConnection
Definition
ElogConnection.h:27
TString
ElogConnection.h
install
include
ElogBeam.h
Generated on
for BmnRoot by
1.17.0