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