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

ElogTrigger.h Class for the table: trigger_. More...

#include <ElogTrigger.h>

Collaboration diagram for ElogTrigger:

Public Member Functions

virtual ~ElogTrigger ()
int GetTriggerId ()
 get trigger id of the current trigger
TString GetTriggerInfo ()
 get trigger info of the current trigger
bool GetIsActive ()
 get is active of the current trigger
int SetTriggerInfo (TString trigger_info)
 set trigger info of the current trigger
int SetIsActive (bool is_active)
 set is active of the current trigger
void Print ()
 print information about current trigger

Static Public Member Functions

static ElogTrigger * CreateTrigger (TString trigger_info, bool is_active)
 add new trigger to the database
static ElogTrigger * GetTrigger (int trigger_id)
 get trigger from the database
static ElogTrigger * GetTrigger (TString trigger_info)
 get trigger from the database
static int CheckTriggerExists (int trigger_id)
 check trigger exists in the database: 1- true, 0 - false, <0 - database operation error
static int CheckTriggerExists (TString trigger_info)
 check trigger exists in the database: 1- true, 0 - false, <0 - database operation error
static int DeleteTrigger (int trigger_id)
 delete trigger from the database
static int DeleteTrigger (TString trigger_info)
 delete trigger from the database
static int PrintAll ()
 print all triggers

Private Member Functions

 ElogTrigger (ElogConnection *db_connect, int trigger_id, TString trigger_info, bool is_active)

Private Attributes

ElogConnection * connectionDB
 connection to the database
int i_trigger_id
 trigger id
TString str_trigger_info
 trigger info
bool b_is_active
 is active

Detailed Description

Definition at line 17 of file ElogTrigger.h.

Constructor & Destructor Documentation

◆ ElogTrigger()

ElogTrigger::ElogTrigger ( ElogConnection * db_connect,
int trigger_id,
TString trigger_info,
bool is_active )
private

Definition at line 16 of file ElogTrigger.cxx.

References b_is_active, connectionDB, i_trigger_id, and str_trigger_info.

Referenced by CreateTrigger(), GetTrigger(), and GetTrigger().

Here is the caller graph for this function:

◆ ~ElogTrigger()

ElogTrigger::~ElogTrigger ( )
virtual

Definition at line 26 of file ElogTrigger.cxx.

References connectionDB.

Member Function Documentation

◆ CheckTriggerExists() [1/2]

int ElogTrigger::CheckTriggerExists ( int trigger_id)
static

Definition at line 190 of file ElogTrigger.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:

◆ CheckTriggerExists() [2/2]

int ElogTrigger::CheckTriggerExists ( TString trigger_info)
static

Definition at line 230 of file ElogTrigger.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:

◆ CreateTrigger()

ElogTrigger * ElogTrigger::CreateTrigger ( TString trigger_info,
bool is_active )
static

Definition at line 33 of file ElogTrigger.cxx.

References ElogTrigger(), TString::Format(), TSQLStatement::GetInt(), ElogConnection::GetSQLServer(), TSQLStatement::NextIteration(), TSQLStatement::NextResultRow(), ElogConnection::Open(), TSQLStatement::Process(), TSQLStatement::SetInt(), TSQLStatement::SetString(), TSQLServer::Statement(), and TSQLStatement::StoreResult().

Here is the call graph for this function:

◆ DeleteTrigger() [1/2]

int ElogTrigger::DeleteTrigger ( int trigger_id)
static

Definition at line 270 of file ElogTrigger.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:

◆ DeleteTrigger() [2/2]

int ElogTrigger::DeleteTrigger ( TString trigger_info)
static

Definition at line 300 of file ElogTrigger.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:

◆ GetIsActive()

bool ElogTrigger::GetIsActive ( )
inline

Definition at line 63 of file ElogTrigger.h.

References b_is_active.

◆ GetTrigger() [1/2]

ElogTrigger * ElogTrigger::GetTrigger ( int trigger_id)
static

Definition at line 94 of file ElogTrigger.cxx.

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

Referenced by get_trigger(), BmnDataTriggerInfo::GetTrigger(), and BmnTrackingQaOffline::GetTrigger().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetTrigger() [2/2]

ElogTrigger * ElogTrigger::GetTrigger ( TString trigger_info)
static

Definition at line 142 of file ElogTrigger.cxx.

References ElogTrigger(), 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:

◆ GetTriggerId()

int ElogTrigger::GetTriggerId ( )
inline

Definition at line 59 of file ElogTrigger.h.

References i_trigger_id.

◆ GetTriggerInfo()

TString ElogTrigger::GetTriggerInfo ( )
inline

Definition at line 61 of file ElogTrigger.h.

References str_trigger_info.

Referenced by get_trigger(), BmnDataTriggerInfo::GetTrigger(), and BmnTrackingQaOffline::GetTrigger().

Here is the caller graph for this function:

◆ Print()

void ElogTrigger::Print ( )

Definition at line 438 of file ElogTrigger.cxx.

References b_is_active, i_trigger_id, and str_trigger_info.

◆ PrintAll()

int ElogTrigger::PrintAll ( )
static

Definition at line 330 of file ElogTrigger.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:

◆ SetIsActive()

int ElogTrigger::SetIsActive ( bool is_active)

Definition at line 405 of file ElogTrigger.cxx.

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

Here is the call graph for this function:

◆ SetTriggerInfo()

int ElogTrigger::SetTriggerInfo ( TString trigger_info)

Definition at line 373 of file ElogTrigger.cxx.

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

Here is the call graph for this function:

Member Data Documentation

◆ b_is_active

bool ElogTrigger::b_is_active
private

Definition at line 29 of file ElogTrigger.h.

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

◆ connectionDB

ElogConnection* ElogTrigger::connectionDB
private

Definition at line 22 of file ElogTrigger.h.

Referenced by ElogTrigger(), ~ElogTrigger(), SetIsActive(), and SetTriggerInfo().

◆ i_trigger_id

int ElogTrigger::i_trigger_id
private

Definition at line 25 of file ElogTrigger.h.

Referenced by ElogTrigger(), GetTriggerId(), Print(), SetIsActive(), and SetTriggerInfo().

◆ str_trigger_info

TString ElogTrigger::str_trigger_info
private

Definition at line 27 of file ElogTrigger.h.

Referenced by ElogTrigger(), GetTriggerInfo(), Print(), and SetTriggerInfo().


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