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

/home/soul/bmnroot/database/uni_db/temp/UniParameterType.h Class for the table: parameter_type More...

#include <UniParameterType.h>

Collaboration diagram for UniParameterType:

Public Member Functions

virtual ~UniParameterType ()
int GetTypeId ()
 get type id of the current parameter type
TString GetTypeName ()
 get type name of the current parameter type
int SetTypeName (TString type_name)
 set type name of the current parameter type
void Print ()
 print information about current parameter type
virtual ~UniParameterType ()
int GetTypeId ()
 get type id of the current parameter type
TString GetTypeName ()
 get type name of the current parameter type
int SetTypeName (TString type_name)
 set type name of the current parameter type
void Print ()
 print information about current parameter type

Static Public Member Functions

static UniParameterType * CreateParameterType (TString type_name)
 add new parameter type to the database
static UniParameterType * GetParameterType (int type_id)
 get parameter type from the database
static int CheckParameterTypeExists (int type_id)
 check parameter type exists in the database: 1- true, 0 - false, <0 - database operation error
static int DeleteParameterType (int type_id)
 delete parameter type from the database
static int PrintAll ()
 print all parameter types
static UniParameterType * CreateParameterType (TString type_name)
 add new parameter type to the database
static UniParameterType * GetParameterType (int type_id)
 get parameter type from the database
static int CheckParameterTypeExists (int type_id)
 check parameter type exists in the database: 1- true, 0 - false, <0 - database operation error
static int DeleteParameterType (int type_id)
 delete parameter type from the database
static int PrintAll ()
 print all parameter types

Private Member Functions

 UniParameterType (UniConnection *db_connect, int type_id, TString type_name)
 UniParameterType (UniConnection *db_connect, int type_id, TString type_name)

Private Attributes

UniConnection * connectionDB
 connection to the database
int i_type_id
 type id
TString str_type_name
 type name

Detailed Description

Definition at line 18 of file UniParameterType.h.

Constructor & Destructor Documentation

◆ UniParameterType() [1/2]

UniParameterType::UniParameterType ( UniConnection * db_connect,
int type_id,
TString type_name )
private

Definition at line 16 of file UniParameterType.cxx.

References connectionDB, i_type_id, and str_type_name.

Referenced by CreateParameterType(), GetParameterType(), and Print().

Here is the caller graph for this function:

◆ ~UniParameterType() [1/2]

UniParameterType::~UniParameterType ( )
virtual

Definition at line 25 of file UniParameterType.cxx.

References connectionDB.

◆ UniParameterType() [2/2]

UniParameterType::UniParameterType ( UniConnection * db_connect,
int type_id,
TString type_name )
private

◆ ~UniParameterType() [2/2]

virtual UniParameterType::~UniParameterType ( )
virtual

Member Function Documentation

◆ CheckParameterTypeExists() [1/2]

int UniParameterType::CheckParameterTypeExists ( int type_id)
static

Definition at line 137 of file UniParameterType.cxx.

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

Here is the call graph for this function:

◆ CheckParameterTypeExists() [2/2]

int UniParameterType::CheckParameterTypeExists ( int type_id)
static

◆ CreateParameterType() [1/2]

UniParameterType * UniParameterType::CreateParameterType ( TString type_name)
static

Definition at line 32 of file UniParameterType.cxx.

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

Here is the call graph for this function:

◆ CreateParameterType() [2/2]

UniParameterType * UniParameterType::CreateParameterType ( TString type_name)
static

References UniParameterType().

Here is the call graph for this function:

◆ DeleteParameterType() [1/2]

int UniParameterType::DeleteParameterType ( int type_id)
static

Definition at line 177 of file UniParameterType.cxx.

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

Here is the call graph for this function:

◆ DeleteParameterType() [2/2]

int UniParameterType::DeleteParameterType ( int type_id)
static

◆ GetParameterType() [1/2]

UniParameterType * UniParameterType::GetParameterType ( int type_id)
static

Definition at line 91 of file UniParameterType.cxx.

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

Here is the call graph for this function:

◆ GetParameterType() [2/2]

UniParameterType * UniParameterType::GetParameterType ( int type_id)
static

References UniParameterType().

Here is the call graph for this function:

◆ GetTypeId() [1/2]

int UniParameterType::GetTypeId ( )
inline

Definition at line 52 of file UniParameterType.h.

References i_type_id.

◆ GetTypeId() [2/2]

int UniParameterType::GetTypeId ( )
inline

Definition at line 52 of file UniParameterType.h.

References i_type_id.

◆ GetTypeName() [1/2]

TString UniParameterType::GetTypeName ( )
inline

Definition at line 54 of file UniParameterType.h.

References str_type_name.

◆ GetTypeName() [2/2]

TString UniParameterType::GetTypeName ( )
inline

Definition at line 54 of file UniParameterType.h.

References str_type_name.

◆ Print() [1/2]

void UniParameterType::Print ( )

Definition at line 281 of file UniParameterType.cxx.

References i_type_id, and str_type_name.

◆ Print() [2/2]

void UniParameterType::Print ( )

References UniParameterType().

Here is the call graph for this function:

◆ PrintAll() [1/2]

int UniParameterType::PrintAll ( )
static

Definition at line 207 of file UniParameterType.cxx.

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

Here is the call graph for this function:

◆ PrintAll() [2/2]

int UniParameterType::PrintAll ( )
static

◆ SetTypeName() [1/2]

int UniParameterType::SetTypeName ( TString type_name)

Definition at line 248 of file UniParameterType.cxx.

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

Here is the call graph for this function:

◆ SetTypeName() [2/2]

int UniParameterType::SetTypeName ( TString type_name)

Member Data Documentation

◆ connectionDB

UniConnection * UniParameterType::connectionDB
private

Definition at line 23 of file UniParameterType.h.

Referenced by UniParameterType(), ~UniParameterType(), and SetTypeName().

◆ i_type_id

int UniParameterType::i_type_id
private

Definition at line 26 of file UniParameterType.h.

Referenced by UniParameterType(), GetTypeId(), Print(), and SetTypeName().

◆ str_type_name

TString UniParameterType::str_type_name
private

Definition at line 28 of file UniParameterType.h.

Referenced by UniParameterType(), GetTypeName(), Print(), and SetTypeName().


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