BmnRoot
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
10#ifndef ElogTarget_H
11#define ElogTarget_H 1
12
13#include "ElogConnection.h"
14#include "TDatime.h"
15#include "TString.h"
16
17class ElogTarget
18{
19 private:
20 /* GENERATED PRIVATE MEMBERS (SHOULD NOT BE CHANGED MANUALLY) */
22 ElogConnection* connectionDB;
23
25 TString str_target;
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
39 static ElogTarget* CreateTarget(TString target, bool is_active);
41 static ElogTarget* GetTarget(TString target);
43 static int CheckTargetExists(TString target);
45 static int DeleteTarget(TString target);
47 static int PrintAll();
48
49 // Getters
51 TString GetTarget() { return str_target; }
53 bool GetIsActive() { return b_is_active; }
54
55 // Setters
57 int SetTarget(TString target);
59 int SetIsActive(bool is_active);
60
62 void Print();
63 /* END OF PUBLIC GENERATED PART (SHOULD NOT BE CHANGED MANUALLY) */
64
66};
67
68#endif
TString GetTarget()
get target of the current target
Definition ElogTarget.h:51
virtual ~ElogTarget()
bool GetIsActive()
get is active of the current target
Definition ElogTarget.h:53
int SetTarget(TString target)
set target of the current target
static int PrintAll()
print all targets
static ElogTarget * GetTarget(TString target)
get target from the database
static ElogTarget * CreateTarget(TString target, bool is_active)
add new target to the database
static int CheckTargetExists(TString target)
check target exists in the database: 1- true, 0 - false, <0 - database operation error
ClassDef(ElogTarget, 1)
int SetIsActive(bool is_active)
set is active of the current target
void Print()
print information about current target
static int DeleteTarget(TString target)
delete target from the database