|
BmnRoot 26.10.0-210-gc52d34b0
Software framework of the BM@N experiment
|
ElogType.h Class for the table: type_. More...
#include <ElogType.h>
Public Member Functions | |
| virtual | ~ElogType () |
| int | GetTypeId () |
| get type id of the current type | |
| TString | GetTypeText () |
| get type text of the current type | |
| int | SetTypeText (TString type_text) |
| set type text of the current type | |
| void | Print () |
| print information about current type | |
Static Public Member Functions | |
| static ElogType * | CreateType (TString type_text) |
| add new type to the database | |
| static ElogType * | GetType (int type_id) |
| get type from the database | |
| static ElogType * | GetType (TString type_text) |
| get type from the database | |
| static int | CheckTypeExists (int type_id) |
| check type exists in the database: 1- true, 0 - false, <0 - database operation error | |
| static int | CheckTypeExists (TString type_text) |
| check type exists in the database: 1- true, 0 - false, <0 - database operation error | |
| static int | DeleteType (int type_id) |
| delete type from the database | |
| static int | DeleteType (TString type_text) |
| delete type from the database | |
| static int | PrintAll () |
| print all types | |
Private Member Functions | |
| ElogType (ElogConnection *db_connect, int type_id, TString type_text) | |
Private Attributes | |
| ElogConnection * | connectionDB |
| connection to the database | |
| int | i_type_id |
| type id | |
| TString | str_type_text |
| type text | |
Definition at line 17 of file ElogType.h.
|
private |
Definition at line 16 of file ElogType.cxx.
References connectionDB, i_type_id, and str_type_text.
Referenced by CreateType(), GetType(), and GetType().
|
virtual |
Definition at line 25 of file ElogType.cxx.
References connectionDB.
|
static |
Definition at line 182 of file ElogType.cxx.
References TString::Format(), ElogConnection::GetSQLServer(), TSQLStatement::NextResultRow(), ElogConnection::Open(), TSQLStatement::Process(), TSQLServer::Statement(), and TSQLStatement::StoreResult().
|
static |
Definition at line 222 of file ElogType.cxx.
References TString::Data(), TString::Format(), ElogConnection::GetSQLServer(), TSQLStatement::NextResultRow(), ElogConnection::Open(), TSQLStatement::Process(), TSQLServer::Statement(), and TSQLStatement::StoreResult().
Definition at line 32 of file ElogType.cxx.
References ElogType(), TString::Format(), TSQLStatement::GetInt(), ElogConnection::GetSQLServer(), TSQLStatement::NextIteration(), TSQLStatement::NextResultRow(), ElogConnection::Open(), TSQLStatement::Process(), TSQLStatement::SetString(), TSQLServer::Statement(), and TSQLStatement::StoreResult().
|
static |
Definition at line 262 of file ElogType.cxx.
References TString::Format(), ElogConnection::GetSQLServer(), TSQLStatement::NextIteration(), ElogConnection::Open(), TSQLStatement::Process(), TSQLStatement::SetInt(), and TSQLServer::Statement().
|
static |
Definition at line 292 of file ElogType.cxx.
References TString::Format(), ElogConnection::GetSQLServer(), TSQLStatement::NextIteration(), ElogConnection::Open(), TSQLStatement::Process(), TSQLStatement::SetString(), and TSQLServer::Statement().
|
static |
Definition at line 90 of file ElogType.cxx.
References ElogType(), TString::Format(), TSQLStatement::GetInt(), ElogConnection::GetSQLServer(), TSQLStatement::GetString(), TSQLStatement::NextResultRow(), ElogConnection::Open(), TSQLStatement::Process(), TSQLServer::Statement(), and TSQLStatement::StoreResult().
Definition at line 136 of file ElogType.cxx.
References ElogType(), TString::Data(), TString::Format(), TSQLStatement::GetInt(), ElogConnection::GetSQLServer(), TSQLStatement::GetString(), TSQLStatement::NextResultRow(), ElogConnection::Open(), TSQLStatement::Process(), TSQLServer::Statement(), and TSQLStatement::StoreResult().
|
inline |
Definition at line 57 of file ElogType.h.
References i_type_id.
|
inline |
Definition at line 59 of file ElogType.h.
References str_type_text.
| void ElogType::Print | ( | ) |
Definition at line 396 of file ElogType.cxx.
References i_type_id, and str_type_text.
|
static |
Definition at line 322 of file ElogType.cxx.
References TString::Format(), TSQLStatement::GetInt(), ElogConnection::GetSQLServer(), TSQLStatement::GetString(), TSQLStatement::NextResultRow(), ElogConnection::Open(), TSQLStatement::Process(), TSQLServer::Statement(), and TSQLStatement::StoreResult().
| int ElogType::SetTypeText | ( | TString | type_text | ) |
Definition at line 363 of file ElogType.cxx.
References connectionDB, TString::Format(), i_type_id, TSQLStatement::NextIteration(), TSQLStatement::Process(), TSQLStatement::SetInt(), TSQLStatement::SetString(), TSQLServer::Statement(), and str_type_text.
|
private |
Definition at line 22 of file ElogType.h.
Referenced by ElogType(), ~ElogType(), and SetTypeText().
|
private |
Definition at line 25 of file ElogType.h.
Referenced by ElogType(), GetTypeId(), Print(), and SetTypeText().
|
private |
Definition at line 27 of file ElogType.h.
Referenced by ElogType(), GetTypeText(), Print(), and SetTypeText().