BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
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
18
class
ElogStatus
19
{
20
private
:
21
/* GENERATED PRIVATE MEMBERS (SHOULD NOT BE CHANGED MANUALLY) */
22
/// connection to the database
23
ElogConnection
*
connectionDB
;
24
25
/// status id
26
int
i_status_id
;
27
/// status text
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
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
60
TString
GetStatusText
() {
return
str_status_text
; }
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
70
ClassDef
(
ElogStatus
, 1);
71
};
72
73
#endif
ClassDef
#define ClassDef(name, id)
TDatime.h
TString.h
TTimeStamp.h
ElogConnection
Definition
ElogConnection.h:27
ElogStatus
/home/gertsen/bmnroot/database/elog_db/ElogStatus.h Class for the table: status_
Definition
ElogStatus.h:19
ElogStatus::CheckStatusExists
static int CheckStatusExists(int status_id)
check status exists in the database: 1- true, 0 - false, <0 - database operation error
Definition
ElogStatus.cxx:182
ElogStatus::connectionDB
ElogConnection * connectionDB
connection to the database
Definition
ElogStatus.h:23
ElogStatus::i_status_id
int i_status_id
status id
Definition
ElogStatus.h:26
ElogStatus::str_status_text
TString str_status_text
status text
Definition
ElogStatus.h:28
ElogStatus::~ElogStatus
virtual ~ElogStatus()
Definition
ElogStatus.cxx:25
ElogStatus::Print
void Print()
print information about current status
Definition
ElogStatus.cxx:396
ElogStatus::DeleteStatus
static int DeleteStatus(int status_id)
delete status from the database
Definition
ElogStatus.cxx:262
ElogStatus::PrintAll
static int PrintAll()
print all statuss
Definition
ElogStatus.cxx:322
ElogStatus::ElogStatus
ElogStatus(ElogConnection *db_connect, int status_id, TString status_text)
Definition
ElogStatus.cxx:16
ElogStatus::CreateStatus
static ElogStatus * CreateStatus(TString status_text)
add new status to the database
Definition
ElogStatus.cxx:32
ElogStatus::SetStatusText
int SetStatusText(TString status_text)
set status text of the current status
Definition
ElogStatus.cxx:363
ElogStatus::GetStatusId
int GetStatusId()
get status id of the current status
Definition
ElogStatus.h:58
ElogStatus::GetStatus
static ElogStatus * GetStatus(int status_id)
get status from the database
Definition
ElogStatus.cxx:90
ElogStatus::GetStatusText
TString GetStatusText()
get status text of the current status
Definition
ElogStatus.h:60
TString
ElogConnection.h
database
elog_db
ElogStatus.h
Generated on
for BmnRoot by
1.17.0