BmnRoot
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
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) */
23 ElogConnection* connectionDB;
24
26 int i_status_id;
28 TString str_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
40 static ElogStatus* CreateStatus(TString status_text);
42 static ElogStatus* GetStatus(int status_id);
44 static ElogStatus* GetStatus(TString status_text);
46 static int CheckStatusExists(int status_id);
48 static int CheckStatusExists(TString status_text);
50 static int DeleteStatus(int status_id);
52 static int DeleteStatus(TString status_text);
54 static int PrintAll();
55
56 // Getters
58 int GetStatusId() { return i_status_id; }
60 TString GetStatusText() { return str_status_text; }
61
62 // Setters
64 int SetStatusText(TString status_text);
65
67 void Print();
68 /* END OF PUBLIC GENERATED PART (SHOULD NOT BE CHANGED MANUALLY) */
69
71};
72
73#endif
static int CheckStatusExists(int status_id)
check status exists in the database: 1- true, 0 - false, <0 - database operation error
ClassDef(ElogStatus, 1)
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
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