BmnRoot 26.10.0-210-gc52d34b0
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
ElogType Class Reference

ElogType.h Class for the table: type_. More...

#include <ElogType.h>

Collaboration diagram for ElogType:

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

Detailed Description

Definition at line 17 of file ElogType.h.

Constructor & Destructor Documentation

◆ ElogType()

ElogType::ElogType ( ElogConnection * db_connect,
int type_id,
TString type_text )
private

Definition at line 16 of file ElogType.cxx.

References connectionDB, i_type_id, and str_type_text.

Referenced by CreateType(), GetType(), and GetType().

Here is the caller graph for this function:

◆ ~ElogType()

ElogType::~ElogType ( )
virtual

Definition at line 25 of file ElogType.cxx.

References connectionDB.

Member Function Documentation

◆ CheckTypeExists() [1/2]

int ElogType::CheckTypeExists ( int type_id)
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().

Here is the call graph for this function:

◆ CheckTypeExists() [2/2]

int ElogType::CheckTypeExists ( TString type_text)
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().

Here is the call graph for this function:

◆ CreateType()

ElogType * ElogType::CreateType ( TString type_text)
static

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

Here is the call graph for this function:

◆ DeleteType() [1/2]

int ElogType::DeleteType ( int type_id)
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().

Here is the call graph for this function:

◆ DeleteType() [2/2]

int ElogType::DeleteType ( TString type_text)
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().

Here is the call graph for this function:

◆ GetType() [1/2]

ElogType * ElogType::GetType ( int type_id)
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().

Here is the call graph for this function:

◆ GetType() [2/2]

ElogType * ElogType::GetType ( TString type_text)
static

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

Here is the call graph for this function:

◆ GetTypeId()

int ElogType::GetTypeId ( )
inline

Definition at line 57 of file ElogType.h.

References i_type_id.

◆ GetTypeText()

TString ElogType::GetTypeText ( )
inline

Definition at line 59 of file ElogType.h.

References str_type_text.

◆ Print()

void ElogType::Print ( )

Definition at line 396 of file ElogType.cxx.

References i_type_id, and str_type_text.

◆ PrintAll()

int ElogType::PrintAll ( )
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().

Here is the call graph for this function:

◆ SetTypeText()

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.

Here is the call graph for this function:

Member Data Documentation

◆ connectionDB

ElogConnection* ElogType::connectionDB
private

Definition at line 22 of file ElogType.h.

Referenced by ElogType(), ~ElogType(), and SetTypeText().

◆ i_type_id

int ElogType::i_type_id
private

Definition at line 25 of file ElogType.h.

Referenced by ElogType(), GetTypeId(), Print(), and SetTypeText().

◆ str_type_text

TString ElogType::str_type_text
private

Definition at line 27 of file ElogType.h.

Referenced by ElogType(), GetTypeText(), Print(), and SetTypeText().


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