BmnRoot 26.10.0-233-gb9bbe585
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

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

Private Member Functions

 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()

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(), and GetBeam().

Here is the caller graph for this function:

◆ ~ElogBeam()

ElogBeam::~ElogBeam ( )
virtual

Definition at line 25 of file ElogBeam.cxx.

References connectionDB.

Member Function Documentation

◆ CheckBeamExists()

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:

◆ CreateBeam()

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:

◆ DeleteBeam()

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:

◆ GetBeam() [1/2]

TString ElogBeam::GetBeam ( )
inline

Definition at line 51 of file ElogBeam.h.

References str_beam.

◆ GetBeam() [2/2]

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:

◆ GetIsActive()

bool ElogBeam::GetIsActive ( )
inline

Definition at line 53 of file ElogBeam.h.

References b_is_active.

◆ Print()

void ElogBeam::Print ( )

Definition at line 289 of file ElogBeam.cxx.

References b_is_active, and str_beam.

◆ PrintAll()

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:

◆ SetBeam()

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:

◆ SetIsActive()

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:

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: