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

UniDetector.h Class for the table: detector_. More...

#include <UniDetector.h>

Collaboration diagram for UniDetector:

Public Member Functions

virtual ~UniDetector ()
TString GetDetectorName ()
 get detector name of the current detector
TString * GetDetectorDesc ()
 get detector description of the current detector
int SetDetectorName (TString detector_name)
 set detector name of the current detector
int SetDetectorDesc (TString *detector_desc)
 set detector description of the current detector
void Print ()
 print information about current detector
virtual ~UniDetector ()
TString GetDetectorName ()
 get detector name of the current detector
TString * GetDetectorDesc ()
 get detector description of the current detector
int SetDetectorName (TString detector_name)
 set detector name of the current detector
int SetDetectorDesc (TString *detector_desc)
 set detector description of the current detector
void Print ()
 print information about current detector

Static Public Member Functions

static UniDetector * CreateDetector (TString detector_name, TString *detector_desc)
 add new detector to the database
static UniDetector * GetDetector (TString detector_name)
 get detector from the database
static int CheckDetectorExists (TString detector_name)
 check detector exists in the database: 1- true, 0 - false, <0 - database operation error
static int DeleteDetector (TString detector_name)
 delete detector from the database
static int PrintAll ()
 print all detectors
static UniDetector * CreateDetector (TString detector_name, TString *detector_desc)
 add new detector to the database
static UniDetector * GetDetector (TString detector_name)
 get detector from the database
static int CheckDetectorExists (TString detector_name)
 check detector exists in the database: 1- true, 0 - false, <0 - database operation error
static int DeleteDetector (TString detector_name)
 delete detector from the database
static int PrintAll ()
 print all detectors

Private Member Functions

 UniDetector (UniConnection *db_connect, TString detector_name, TString *detector_desc)
 UniDetector (UniConnection *db_connect, TString detector_name, TString *detector_desc)

Private Attributes

UniConnection * connectionDB
 connection to the database
TString str_detector_name
 detector name
TString * str_detector_desc
 detector description

Detailed Description

Definition at line 17 of file UniDetector.h.

Constructor & Destructor Documentation

◆ UniDetector() [1/2]

UniDetector::UniDetector ( UniConnection * db_connect,
TString detector_name,
TString * detector_desc )
private

Definition at line 16 of file UniDetector.cxx.

References connectionDB, str_detector_desc, and str_detector_name.

Referenced by CreateDetector(), GetDetector(), and Print().

Here is the caller graph for this function:

◆ ~UniDetector() [1/2]

UniDetector::~UniDetector ( )
virtual

Definition at line 25 of file UniDetector.cxx.

References connectionDB, and str_detector_desc.

◆ UniDetector() [2/2]

UniDetector::UniDetector ( UniConnection * db_connect,
TString detector_name,
TString * detector_desc )
private

◆ ~UniDetector() [2/2]

virtual UniDetector::~UniDetector ( )
virtual

Member Function Documentation

◆ CheckDetectorExists() [1/2]

int UniDetector::CheckDetectorExists ( TString detector_name)
static

Definition at line 124 of file UniDetector.cxx.

References TString::Data(), TString::Format(), UniConnection::GetSQLServer(), TSQLStatement::NextResultRow(), UniConnection::Open(), TSQLStatement::Process(), TSQLServer::Statement(), and TSQLStatement::StoreResult().

Referenced by move_field_2_parameter().

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

◆ CheckDetectorExists() [2/2]

int UniDetector::CheckDetectorExists ( TString detector_name)
static

◆ CreateDetector() [1/2]

UniDetector * UniDetector::CreateDetector ( TString detector_name,
TString * detector_desc )
static

Definition at line 34 of file UniDetector.cxx.

References UniDetector(), TString::Format(), UniConnection::GetSQLServer(), TSQLStatement::NextIteration(), UniConnection::Open(), TSQLStatement::Process(), TSQLStatement::SetNull(), TSQLStatement::SetString(), and TSQLServer::Statement().

Referenced by move_field_2_parameter().

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

◆ CreateDetector() [2/2]

UniDetector * UniDetector::CreateDetector ( TString detector_name,
TString * detector_desc )
static

References UniDetector().

Here is the call graph for this function:

◆ DeleteDetector() [1/2]

int UniDetector::DeleteDetector ( TString detector_name)
static

Definition at line 164 of file UniDetector.cxx.

References TString::Format(), UniConnection::GetSQLServer(), TSQLStatement::NextIteration(), UniConnection::Open(), TSQLStatement::Process(), TSQLStatement::SetString(), and TSQLServer::Statement().

Here is the call graph for this function:

◆ DeleteDetector() [2/2]

int UniDetector::DeleteDetector ( TString detector_name)
static

◆ GetDetector() [1/2]

UniDetector * UniDetector::GetDetector ( TString detector_name)
static

Definition at line 75 of file UniDetector.cxx.

References UniDetector(), TString::Data(), TString::Format(), UniConnection::GetSQLServer(), TSQLStatement::GetString(), TSQLStatement::IsNull(), TSQLStatement::NextResultRow(), UniConnection::Open(), TSQLStatement::Process(), TSQLServer::Statement(), and TSQLStatement::StoreResult().

Here is the call graph for this function:

◆ GetDetector() [2/2]

UniDetector * UniDetector::GetDetector ( TString detector_name)
static

References UniDetector().

Here is the call graph for this function:

◆ GetDetectorDesc() [1/2]

TString * UniDetector::GetDetectorDesc ( )
inline

Definition at line 53 of file UniDetector.h.

References str_detector_desc.

◆ GetDetectorDesc() [2/2]

TString * UniDetector::GetDetectorDesc ( )
inline

Definition at line 53 of file UniDetector.h.

References str_detector_desc.

◆ GetDetectorName() [1/2]

TString UniDetector::GetDetectorName ( )
inline

Definition at line 51 of file UniDetector.h.

References str_detector_name.

◆ GetDetectorName() [2/2]

TString UniDetector::GetDetectorName ( )
inline

Definition at line 51 of file UniDetector.h.

References str_detector_name.

◆ Print() [1/2]

void UniDetector::Print ( )

Definition at line 311 of file UniDetector.cxx.

References str_detector_desc, and str_detector_name.

◆ Print() [2/2]

void UniDetector::Print ( )

References UniDetector().

Here is the call graph for this function:

◆ PrintAll() [1/2]

int UniDetector::PrintAll ( )
static

Definition at line 194 of file UniDetector.cxx.

References TString::Format(), UniConnection::GetSQLServer(), TSQLStatement::GetString(), TSQLStatement::IsNull(), TSQLStatement::NextResultRow(), UniConnection::Open(), TSQLStatement::Process(), TSQLServer::Statement(), and TSQLStatement::StoreResult().

Here is the call graph for this function:

◆ PrintAll() [2/2]

int UniDetector::PrintAll ( )
static

◆ SetDetectorDesc() [1/2]

int UniDetector::SetDetectorDesc ( TString * detector_desc)

Definition at line 270 of file UniDetector.cxx.

References connectionDB, TString::Format(), TSQLStatement::NextIteration(), TSQLStatement::Process(), TSQLStatement::SetNull(), TSQLStatement::SetString(), TSQLServer::Statement(), str_detector_desc, and str_detector_name.

Here is the call graph for this function:

◆ SetDetectorDesc() [2/2]

int UniDetector::SetDetectorDesc ( TString * detector_desc)

◆ SetDetectorName() [1/2]

int UniDetector::SetDetectorName ( TString detector_name)

Definition at line 238 of file UniDetector.cxx.

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

Here is the call graph for this function:

◆ SetDetectorName() [2/2]

int UniDetector::SetDetectorName ( TString detector_name)

Member Data Documentation

◆ connectionDB

UniConnection * UniDetector::connectionDB
private

Definition at line 22 of file UniDetector.h.

Referenced by UniDetector(), ~UniDetector(), SetDetectorDesc(), and SetDetectorName().

◆ str_detector_desc

TString * UniDetector::str_detector_desc
private

Definition at line 27 of file UniDetector.h.

Referenced by UniDetector(), ~UniDetector(), GetDetectorDesc(), Print(), and SetDetectorDesc().

◆ str_detector_name

TString UniDetector::str_detector_name
private

Definition at line 25 of file UniDetector.h.

Referenced by UniDetector(), GetDetectorName(), Print(), SetDetectorDesc(), and SetDetectorName().


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