BmnRoot
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
10#ifndef ElogBeam_H
11#define ElogBeam_H 1
12
13#include "ElogConnection.h"
14#include "TDatime.h"
15#include "TString.h"
16
17class ElogBeam
18{
19 private:
20 /* GENERATED PRIVATE MEMBERS (SHOULD NOT BE CHANGED MANUALLY) */
22 ElogConnection* connectionDB;
23
25 TString str_beam;
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
39 static ElogBeam* CreateBeam(TString beam, bool is_active);
41 static ElogBeam* GetBeam(TString beam);
43 static int CheckBeamExists(TString beam);
45 static int DeleteBeam(TString beam);
47 static int PrintAll();
48
49 // Getters
51 TString GetBeam() { return str_beam; }
53 bool GetIsActive() { return b_is_active; }
54
55 // Setters
57 int SetBeam(TString beam);
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
static ElogBeam * GetBeam(TString beam)
get beam from the database
static int CheckBeamExists(TString beam)
check beam exists in the database: 1- true, 0 - false, <0 - database operation error
TString GetBeam()
get beam of the current beam
Definition ElogBeam.h:51
int SetBeam(TString beam)
set beam of the current beam
static int DeleteBeam(TString beam)
delete beam from the database
static ElogBeam * CreateBeam(TString beam, bool is_active)
add new beam to the database
ClassDef(ElogBeam, 1)
void Print()
print information about current beam
static int PrintAll()
print all beams
bool GetIsActive()
get is active of the current beam
Definition ElogBeam.h:53
int SetIsActive(bool is_active)
set is active of the current beam
virtual ~ElogBeam()