BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
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
18{
19 private:
20 /* GENERATED PRIVATE MEMBERS (SHOULD NOT BE CHANGED MANUALLY) */
21 /// connection to the database
23
24 /// target
26 /// 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
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
66};
67
68#endif
#define ClassDef(name, id)
ElogTarget.h Class for the table: target_.
Definition ElogTarget.h:18
TString GetTarget()
get target of the current target
Definition ElogTarget.h:51
bool GetIsActive()
get is active of the current target
Definition ElogTarget.h:53
TString str_target
target
Definition ElogTarget.h:25
int SetTarget(TString target)
set target of the current target
static int DeleteTarget(TString target)
delete target from the database
static int PrintAll()
print all targets
static int CheckTargetExists(TString target)
check target exists in the database: 1- true, 0 - false, <0 - database operation error
ElogTarget(ElogConnection *db_connect, TString target, bool is_active)
ElogConnection * connectionDB
connection to the database
Definition ElogTarget.h:22
static ElogTarget * CreateTarget(TString target, bool is_active)
add new target to the database
int SetIsActive(bool is_active)
set is active of the current target
virtual ~ElogTarget()
void Print()
print information about current target
bool b_is_active
is active
Definition ElogTarget.h:27