BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
ElogStatus.h
Go to the documentation of this file.
1// ----------------------------------------------------------------------
2// ElogStatus header file
3// Generated 13-04-2026
4// ----------------------------------------------------------------------
5
6/** /home/gertsen/bmnroot/database/elog_db/ElogStatus.h
7 ** Class for the table: status_
8 **/
9
10#ifndef ELOGSTATUS_H
11#define ELOGSTATUS_H 1
12
13#include "ElogConnection.h"
14#include "TDatime.h"
15#include "TString.h"
16#include "TTimeStamp.h"
17
19{
20 private:
21 /* GENERATED PRIVATE MEMBERS (SHOULD NOT BE CHANGED MANUALLY) */
22 /// connection to the database
24
25 /// status id
27 /// status text
29
30 // Constructor
31 ElogStatus(ElogConnection* db_connect, int status_id, TString status_text);
32 /* END OF PRIVATE GENERATED PART (SHOULD NOT BE CHANGED MANUALLY) */
33
34 public:
35 /* GENERATED PUBLIC MEMBERS (SHOULD NOT BE CHANGED MANUALLY) */
36 virtual ~ElogStatus(); // Destructor
37
38 // static class functions
39 /// add new status to the database
40 static ElogStatus* CreateStatus(TString status_text);
41 /// get status from the database
42 static ElogStatus* GetStatus(int status_id);
43 /// get status from the database
44 static ElogStatus* GetStatus(TString status_text);
45 /// check status exists in the database: 1- true, 0 - false, <0 - database operation error
46 static int CheckStatusExists(int status_id);
47 /// check status exists in the database: 1- true, 0 - false, <0 - database operation error
48 static int CheckStatusExists(TString status_text);
49 /// delete status from the database
50 static int DeleteStatus(int status_id);
51 /// delete status from the database
52 static int DeleteStatus(TString status_text);
53 /// print all statuss
54 static int PrintAll();
55
56 // Getters
57 /// get status id of the current status
58 int GetStatusId() { return i_status_id; }
59 /// get status text of the current status
61
62 // Setters
63 /// set status text of the current status
64 int SetStatusText(TString status_text);
65
66 /// print information about current status
67 void Print();
68 /* END OF PUBLIC GENERATED PART (SHOULD NOT BE CHANGED MANUALLY) */
69
71};
72
73#endif
#define ClassDef(name, id)
/home/gertsen/bmnroot/database/elog_db/ElogStatus.h Class for the table: status_
Definition ElogStatus.h:19
static int CheckStatusExists(int status_id)
check status exists in the database: 1- true, 0 - false, <0 - database operation error
ElogConnection * connectionDB
connection to the database
Definition ElogStatus.h:23
int i_status_id
status id
Definition ElogStatus.h:26
TString str_status_text
status text
Definition ElogStatus.h:28
virtual ~ElogStatus()
void Print()
print information about current status
static int DeleteStatus(int status_id)
delete status from the database
static int PrintAll()
print all statuss
ElogStatus(ElogConnection *db_connect, int status_id, TString status_text)
static ElogStatus * CreateStatus(TString status_text)
add new status to the database
int SetStatusText(TString status_text)
set status text of the current status
int GetStatusId()
get status id of the current status
Definition ElogStatus.h:58
static ElogStatus * GetStatus(int status_id)
get status from the database
TString GetStatusText()
get status text of the current status
Definition ElogStatus.h:60