BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
ElogTarget Class Reference

ElogTarget.h Class for the table: target_. More...

#include <ElogTarget.h>

Collaboration diagram for ElogTarget:

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

Detailed Description

Definition at line 17 of file ElogTarget.h.

Constructor & Destructor Documentation

◆ ElogTarget() [1/2]

ElogTarget::ElogTarget ( ElogConnection * db_connect,
TString target,
bool is_active )
private

Definition at line 16 of file ElogTarget.cxx.

References b_is_active, connectionDB, and str_target.

Referenced by CreateTarget(), GetTarget(), and Print().

Here is the caller graph for this function:

◆ ~ElogTarget() [1/2]

ElogTarget::~ElogTarget ( )
virtual

Definition at line 25 of file ElogTarget.cxx.

References connectionDB.

◆ ElogTarget() [2/2]

ElogTarget::ElogTarget ( ElogConnection * db_connect,
TString target,
bool is_active )
private

◆ ~ElogTarget() [2/2]

virtual ElogTarget::~ElogTarget ( )
virtual

Member Function Documentation

◆ CheckTargetExists() [1/2]

int ElogTarget::CheckTargetExists ( TString target)
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().

Here is the call graph for this function:

◆ CheckTargetExists() [2/2]

int ElogTarget::CheckTargetExists ( TString target)
static

◆ CreateTarget() [1/2]

ElogTarget * ElogTarget::CreateTarget ( TString target,
bool is_active )
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().

Here is the call graph for this function:

◆ CreateTarget() [2/2]

ElogTarget * ElogTarget::CreateTarget ( TString target,
bool is_active )
static

References ElogTarget().

Here is the call graph for this function:

◆ DeleteTarget() [1/2]

int ElogTarget::DeleteTarget ( TString target)
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().

Here is the call graph for this function:

◆ DeleteTarget() [2/2]

int ElogTarget::DeleteTarget ( TString target)
static

◆ GetIsActive() [1/2]

bool ElogTarget::GetIsActive ( )
inline

Definition at line 53 of file ElogTarget.h.

References b_is_active.

◆ GetIsActive() [2/2]

bool ElogTarget::GetIsActive ( )
inline

Definition at line 53 of file ElogTarget.h.

References b_is_active.

◆ GetTarget() [1/4]

TString ElogTarget::GetTarget ( )
inline

Definition at line 51 of file ElogTarget.h.

References str_target.

◆ GetTarget() [2/4]

TString ElogTarget::GetTarget ( )
inline

Definition at line 51 of file ElogTarget.h.

References str_target.

◆ GetTarget() [3/4]

ElogTarget * ElogTarget::GetTarget ( TString 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().

Here is the call graph for this function:

◆ GetTarget() [4/4]

ElogTarget * ElogTarget::GetTarget ( TString target)
static

References ElogTarget().

Here is the call graph for this function:

◆ Print() [1/2]

void ElogTarget::Print ( )

Definition at line 289 of file ElogTarget.cxx.

References b_is_active, and str_target.

◆ Print() [2/2]

void ElogTarget::Print ( )

References ElogTarget().

Here is the call graph for this function:

◆ PrintAll() [1/2]

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

Here is the call graph for this function:

◆ PrintAll() [2/2]

int ElogTarget::PrintAll ( )
static

◆ SetIsActive() [1/2]

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.

Here is the call graph for this function:

◆ SetIsActive() [2/2]

int ElogTarget::SetIsActive ( bool is_active)

◆ SetTarget() [1/2]

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.

Here is the call graph for this function:

◆ SetTarget() [2/2]

int ElogTarget::SetTarget ( TString target)

Member Data Documentation

◆ b_is_active

bool ElogTarget::b_is_active
private

Definition at line 27 of file ElogTarget.h.

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

◆ connectionDB

ElogConnection * ElogTarget::connectionDB
private

Definition at line 22 of file ElogTarget.h.

Referenced by ElogTarget(), ~ElogTarget(), SetIsActive(), and SetTarget().

◆ str_target

TString ElogTarget::str_target
private

Definition at line 25 of file ElogTarget.h.

Referenced by ElogTarget(), GetTarget(), Print(), SetIsActive(), and SetTarget().


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