|
BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
|
ElogTarget.h Class for the table: target_. More...
#include <ElogTarget.h>
Public Member Functions | |
| virtual | ~ElogTarget () |
| TString | GetTarget () |
| get target of the current target | |
| bool | GetIsActive () |
| get is active of the current target | |
| int | SetTarget (TString target) |
| set target of the current target | |
| int | SetIsActive (bool is_active) |
| set is active of the current target | |
| void | Print () |
| print information about current target | |
| virtual | ~ElogTarget () |
| TString | GetTarget () |
| get target of the current target | |
| bool | GetIsActive () |
| get is active of the current target | |
| int | SetTarget (TString target) |
| set target of the current target | |
| int | SetIsActive (bool is_active) |
| set is active of the current target | |
| void | Print () |
| print information about current target | |
Static Public Member Functions | |
| static ElogTarget * | CreateTarget (TString target, bool is_active) |
| add new target to the database | |
| static ElogTarget * | GetTarget (TString target) |
| get target from the database | |
| static int | CheckTargetExists (TString target) |
| check target exists in the database: 1- true, 0 - false, <0 - database operation error | |
| static int | DeleteTarget (TString target) |
| delete target from the database | |
| static int | PrintAll () |
| print all targets | |
| static ElogTarget * | CreateTarget (TString target, bool is_active) |
| add new target to the database | |
| static ElogTarget * | GetTarget (TString target) |
| get target from the database | |
| static int | CheckTargetExists (TString target) |
| check target exists in the database: 1- true, 0 - false, <0 - database operation error | |
| static int | DeleteTarget (TString target) |
| delete target from the database | |
| static int | PrintAll () |
| print all targets | |
Private Member Functions | |
| ElogTarget (ElogConnection *db_connect, TString target, bool is_active) | |
| ElogTarget (ElogConnection *db_connect, TString target, bool is_active) | |
Private Attributes | |
| ElogConnection * | connectionDB |
| connection to the database | |
| TString | str_target |
| target | |
| bool | b_is_active |
| is active | |
Definition at line 17 of file ElogTarget.h.
|
private |
Definition at line 16 of file ElogTarget.cxx.
References b_is_active, connectionDB, and str_target.
Referenced by CreateTarget(), GetTarget(), and Print().
|
virtual |
Definition at line 25 of file ElogTarget.cxx.
References connectionDB.
|
private |
|
virtual |
|
static |
Definition at line 113 of file ElogTarget.cxx.
References TString::Data(), TString::Format(), ElogConnection::GetSQLServer(), TSQLStatement::NextResultRow(), ElogConnection::Open(), TSQLStatement::Process(), TSQLServer::Statement(), and TSQLStatement::StoreResult().
|
static |
|
static |
Definition at line 32 of file ElogTarget.cxx.
References ElogTarget(), TString::Format(), ElogConnection::GetSQLServer(), TSQLStatement::NextIteration(), ElogConnection::Open(), TSQLStatement::Process(), TSQLStatement::SetInt(), TSQLStatement::SetString(), and TSQLServer::Statement().
|
static |
|
static |
Definition at line 153 of file ElogTarget.cxx.
References TString::Format(), ElogConnection::GetSQLServer(), TSQLStatement::NextIteration(), ElogConnection::Open(), TSQLStatement::Process(), TSQLStatement::SetString(), and TSQLServer::Statement().
|
static |
|
inline |
Definition at line 53 of file ElogTarget.h.
References b_is_active.
|
inline |
Definition at line 53 of file ElogTarget.h.
References b_is_active.
|
inline |
Definition at line 51 of file ElogTarget.h.
References str_target.
|
inline |
Definition at line 51 of file ElogTarget.h.
References str_target.
|
static |
Definition at line 67 of file ElogTarget.cxx.
References ElogTarget(), TString::Data(), TString::Format(), TSQLStatement::GetInt(), ElogConnection::GetSQLServer(), TSQLStatement::GetString(), TSQLStatement::NextResultRow(), ElogConnection::Open(), TSQLStatement::Process(), TSQLServer::Statement(), and TSQLStatement::StoreResult().
|
static |
| void ElogTarget::Print | ( | ) |
Definition at line 289 of file ElogTarget.cxx.
References b_is_active, and str_target.
| void ElogTarget::Print | ( | ) |
|
static |
Definition at line 183 of file ElogTarget.cxx.
References TString::Format(), TSQLStatement::GetInt(), ElogConnection::GetSQLServer(), TSQLStatement::GetString(), TSQLStatement::NextResultRow(), ElogConnection::Open(), TSQLStatement::Process(), TSQLServer::Statement(), and TSQLStatement::StoreResult().
|
static |
| int ElogTarget::SetIsActive | ( | bool | is_active | ) |
Definition at line 256 of file ElogTarget.cxx.
References b_is_active, connectionDB, TString::Format(), TSQLStatement::NextIteration(), TSQLStatement::Process(), TSQLStatement::SetInt(), TSQLStatement::SetString(), TSQLServer::Statement(), and str_target.
| int ElogTarget::SetIsActive | ( | bool | is_active | ) |
| int ElogTarget::SetTarget | ( | TString | target | ) |
Definition at line 224 of file ElogTarget.cxx.
References connectionDB, TString::Format(), TSQLStatement::NextIteration(), TSQLStatement::Process(), TSQLStatement::SetString(), TSQLServer::Statement(), and str_target.
| int ElogTarget::SetTarget | ( | TString | target | ) |
|
private |
Definition at line 27 of file ElogTarget.h.
Referenced by ElogTarget(), GetIsActive(), Print(), and SetIsActive().
|
private |
Definition at line 22 of file ElogTarget.h.
Referenced by ElogTarget(), ~ElogTarget(), SetIsActive(), and SetTarget().
|
private |
Definition at line 25 of file ElogTarget.h.
Referenced by ElogTarget(), GetTarget(), Print(), SetIsActive(), and SetTarget().