BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
ElogBeam Class Reference

ElogBeam.h Class for the table: beam_. More...

#include <ElogBeam.h>

Collaboration diagram for ElogBeam:

Public Member Functions

virtual ~ElogBeam ()
TString GetBeam ()
 get beam of the current beam
bool GetIsActive ()
 get is active of the current beam
int SetBeam (TString beam)
 set beam of the current beam
int SetIsActive (bool is_active)
 set is active of the current beam
void Print ()
 print information about current beam
virtual ~ElogBeam ()
TString GetBeam ()
 get beam of the current beam
bool GetIsActive ()
 get is active of the current beam
int SetBeam (TString beam)
 set beam of the current beam
int SetIsActive (bool is_active)
 set is active of the current beam
void Print ()
 print information about current beam

Static Public Member Functions

static ElogBeam * CreateBeam (TString beam, bool is_active)
 add new beam to the database
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
static int DeleteBeam (TString beam)
 delete beam from the database
static int PrintAll ()
 print all beams
static ElogBeam * CreateBeam (TString beam, bool is_active)
 add new beam to the database
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
static int DeleteBeam (TString beam)
 delete beam from the database
static int PrintAll ()
 print all beams

Private Member Functions

 ElogBeam (ElogConnection *db_connect, TString beam, bool is_active)
 ElogBeam (ElogConnection *db_connect, TString beam, bool is_active)

Private Attributes

ElogConnection * connectionDB
 connection to the database
TString str_beam
 beam
bool b_is_active
 is active

Detailed Description

Definition at line 17 of file ElogBeam.h.

Constructor & Destructor Documentation

◆ ElogBeam() [1/2]

ElogBeam::ElogBeam ( ElogConnection * db_connect,
TString beam,
bool is_active )
private

Definition at line 16 of file ElogBeam.cxx.

References b_is_active, connectionDB, and str_beam.

Referenced by CreateBeam(), GetBeam(), and Print().

Here is the caller graph for this function:

◆ ~ElogBeam() [1/2]

ElogBeam::~ElogBeam ( )
virtual

Definition at line 25 of file ElogBeam.cxx.

References connectionDB.

◆ ElogBeam() [2/2]

ElogBeam::ElogBeam ( ElogConnection * db_connect,
TString beam,
bool is_active )
private

◆ ~ElogBeam() [2/2]

virtual ElogBeam::~ElogBeam ( )
virtual

Member Function Documentation

◆ CheckBeamExists() [1/2]

int ElogBeam::CheckBeamExists ( TString beam)
static

Definition at line 113 of file ElogBeam.cxx.

References TString::Data(), TString::Format(), ElogConnection::GetSQLServer(), TSQLStatement::NextResultRow(), ElogConnection::Open(), TSQLStatement::Process(), TSQLServer::Statement(), and TSQLStatement::StoreResult().

Here is the call graph for this function:

◆ CheckBeamExists() [2/2]

int ElogBeam::CheckBeamExists ( TString beam)
static

◆ CreateBeam() [1/2]

ElogBeam * ElogBeam::CreateBeam ( TString beam,
bool is_active )
static

Definition at line 32 of file ElogBeam.cxx.

References ElogBeam(), TString::Format(), ElogConnection::GetSQLServer(), TSQLStatement::NextIteration(), ElogConnection::Open(), TSQLStatement::Process(), TSQLStatement::SetInt(), TSQLStatement::SetString(), and TSQLServer::Statement().

Here is the call graph for this function:

◆ CreateBeam() [2/2]

ElogBeam * ElogBeam::CreateBeam ( TString beam,
bool is_active )
static

References ElogBeam().

Here is the call graph for this function:

◆ DeleteBeam() [1/2]

int ElogBeam::DeleteBeam ( TString beam)
static

Definition at line 153 of file ElogBeam.cxx.

References TString::Format(), ElogConnection::GetSQLServer(), TSQLStatement::NextIteration(), ElogConnection::Open(), TSQLStatement::Process(), TSQLStatement::SetString(), and TSQLServer::Statement().

Here is the call graph for this function:

◆ DeleteBeam() [2/2]

int ElogBeam::DeleteBeam ( TString beam)
static

◆ GetBeam() [1/4]

TString ElogBeam::GetBeam ( )
inline

Definition at line 51 of file ElogBeam.h.

References str_beam.

◆ GetBeam() [2/4]

TString ElogBeam::GetBeam ( )
inline

Definition at line 51 of file ElogBeam.h.

References str_beam.

◆ GetBeam() [3/4]

ElogBeam * ElogBeam::GetBeam ( TString beam)
static

Definition at line 67 of file ElogBeam.cxx.

References ElogBeam(), TString::Data(), TString::Format(), TSQLStatement::GetInt(), ElogConnection::GetSQLServer(), TSQLStatement::GetString(), TSQLStatement::NextResultRow(), ElogConnection::Open(), TSQLStatement::Process(), TSQLServer::Statement(), and TSQLStatement::StoreResult().

Here is the call graph for this function:

◆ GetBeam() [4/4]

ElogBeam * ElogBeam::GetBeam ( TString beam)
static

References ElogBeam().

Here is the call graph for this function:

◆ GetIsActive() [1/2]

bool ElogBeam::GetIsActive ( )
inline

Definition at line 53 of file ElogBeam.h.

References b_is_active.

◆ GetIsActive() [2/2]

bool ElogBeam::GetIsActive ( )
inline

Definition at line 53 of file ElogBeam.h.

References b_is_active.

◆ Print() [1/2]

void ElogBeam::Print ( )

Definition at line 289 of file ElogBeam.cxx.

References b_is_active, and str_beam.

◆ Print() [2/2]

void ElogBeam::Print ( )

References ElogBeam().

Here is the call graph for this function:

◆ PrintAll() [1/2]

int ElogBeam::PrintAll ( )
static

Definition at line 183 of file ElogBeam.cxx.

References TString::Format(), TSQLStatement::GetInt(), ElogConnection::GetSQLServer(), TSQLStatement::GetString(), TSQLStatement::NextResultRow(), ElogConnection::Open(), TSQLStatement::Process(), TSQLServer::Statement(), and TSQLStatement::StoreResult().

Here is the call graph for this function:

◆ PrintAll() [2/2]

int ElogBeam::PrintAll ( )
static

◆ SetBeam() [1/2]

int ElogBeam::SetBeam ( TString beam)

Definition at line 224 of file ElogBeam.cxx.

References connectionDB, TString::Format(), TSQLStatement::NextIteration(), TSQLStatement::Process(), TSQLStatement::SetString(), TSQLServer::Statement(), and str_beam.

Here is the call graph for this function:

◆ SetBeam() [2/2]

int ElogBeam::SetBeam ( TString beam)

◆ SetIsActive() [1/2]

int ElogBeam::SetIsActive ( bool is_active)

Definition at line 256 of file ElogBeam.cxx.

References b_is_active, connectionDB, TString::Format(), TSQLStatement::NextIteration(), TSQLStatement::Process(), TSQLStatement::SetInt(), TSQLStatement::SetString(), TSQLServer::Statement(), and str_beam.

Here is the call graph for this function:

◆ SetIsActive() [2/2]

int ElogBeam::SetIsActive ( bool is_active)

Member Data Documentation

◆ b_is_active

bool ElogBeam::b_is_active
private

Definition at line 27 of file ElogBeam.h.

Referenced by ElogBeam(), GetIsActive(), Print(), and SetIsActive().

◆ connectionDB

ElogConnection * ElogBeam::connectionDB
private

Definition at line 22 of file ElogBeam.h.

Referenced by ElogBeam(), ~ElogBeam(), SetBeam(), and SetIsActive().

◆ str_beam

TString ElogBeam::str_beam
private

Definition at line 25 of file ElogBeam.h.

Referenced by ElogBeam(), GetBeam(), Print(), SetBeam(), and SetIsActive().


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