BmnRoot
Loading...
Searching...
No Matches
ElogStatus Class Reference

#include <ElogStatus.h>

Public Member Functions

virtual ~ElogStatus ()
 
int GetStatusId ()
 get status id of the current status
 
TString GetStatusText ()
 get status text of the current status
 
int SetStatusText (TString status_text)
 set status text of the current status
 
void Print ()
 print information about current status
 
 ClassDef (ElogStatus, 1)
 

Static Public Member Functions

static ElogStatusCreateStatus (TString status_text)
 add new status to the database
 
static ElogStatusGetStatus (int status_id)
 get status from the database
 
static ElogStatusGetStatus (TString status_text)
 get status from the database
 
static int CheckStatusExists (int status_id)
 check status exists in the database: 1- true, 0 - false, <0 - database operation error
 
static int CheckStatusExists (TString status_text)
 check status exists in the database: 1- true, 0 - false, <0 - database operation error
 
static int DeleteStatus (int status_id)
 delete status from the database
 
static int DeleteStatus (TString status_text)
 delete status from the database
 
static int PrintAll ()
 print all statuss
 

Detailed Description

/home/gertsen/bmnroot/database/elog_db/ElogStatus.h Class for the table: status_

Definition at line 18 of file ElogStatus.h.

Constructor & Destructor Documentation

◆ ~ElogStatus()

ElogStatus::~ElogStatus ( )
virtual

Definition at line 25 of file ElogStatus.cxx.

Member Function Documentation

◆ CheckStatusExists() [1/2]

int ElogStatus::CheckStatusExists ( int  status_id)
static

check status exists in the database: 1- true, 0 - false, <0 - database operation error

Definition at line 182 of file ElogStatus.cxx.

References ElogConnection::GetSQLServer(), and ElogConnection::Open().

◆ CheckStatusExists() [2/2]

int ElogStatus::CheckStatusExists ( TString  status_text)
static

check status exists in the database: 1- true, 0 - false, <0 - database operation error

Definition at line 222 of file ElogStatus.cxx.

References ElogConnection::GetSQLServer(), and ElogConnection::Open().

◆ ClassDef()

ElogStatus::ClassDef ( ElogStatus  ,
 
)

◆ CreateStatus()

ElogStatus * ElogStatus::CreateStatus ( TString  status_text)
static

add new status to the database

Definition at line 32 of file ElogStatus.cxx.

References ElogConnection::GetSQLServer(), and ElogConnection::Open().

◆ DeleteStatus() [1/2]

int ElogStatus::DeleteStatus ( int  status_id)
static

delete status from the database

Definition at line 262 of file ElogStatus.cxx.

References ElogConnection::GetSQLServer(), and ElogConnection::Open().

◆ DeleteStatus() [2/2]

int ElogStatus::DeleteStatus ( TString  status_text)
static

delete status from the database

Definition at line 292 of file ElogStatus.cxx.

References ElogConnection::GetSQLServer(), and ElogConnection::Open().

◆ GetStatus() [1/2]

ElogStatus * ElogStatus::GetStatus ( int  status_id)
static

get status from the database

Definition at line 90 of file ElogStatus.cxx.

References ElogConnection::GetSQLServer(), and ElogConnection::Open().

◆ GetStatus() [2/2]

ElogStatus * ElogStatus::GetStatus ( TString  status_text)
static

get status from the database

Definition at line 136 of file ElogStatus.cxx.

References ElogConnection::GetSQLServer(), and ElogConnection::Open().

◆ GetStatusId()

int ElogStatus::GetStatusId ( )
inline

get status id of the current status

Definition at line 58 of file ElogStatus.h.

◆ GetStatusText()

TString ElogStatus::GetStatusText ( )
inline

get status text of the current status

Definition at line 60 of file ElogStatus.h.

◆ Print()

void ElogStatus::Print ( )

print information about current status

Definition at line 396 of file ElogStatus.cxx.

◆ PrintAll()

int ElogStatus::PrintAll ( )
static

print all statuss

Definition at line 322 of file ElogStatus.cxx.

References ElogConnection::GetSQLServer(), and ElogConnection::Open().

◆ SetStatusText()

int ElogStatus::SetStatusText ( TString  status_text)

set status text of the current status

Definition at line 363 of file ElogStatus.cxx.

References ElogConnection::GetSQLServer().


The documentation for this class was generated from the following files: