BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
Loading...
Searching...
No Matches
UniParameterType.h
Go to the documentation of this file.
1
// ----------------------------------------------------------------------
2
// UniParameterType header file
3
// Generated 05-06-2023
4
// ----------------------------------------------------------------------
5
6
/** /home/soul/bmnroot/database/uni_db/temp/UniParameterType.h
7
** Class for the table: parameter_type
8
**/
9
10
#ifndef UNIPARAMETERTYPE_H
11
#define UNIPARAMETERTYPE_H 1
12
13
#include "
TDatime.h
"
14
#include "
TString.h
"
15
#include "
TTimeStamp.h
"
16
#include "
UniConnection.h
"
17
18
class
UniParameterType
19
{
20
private
:
21
/* GENERATED PRIVATE MEMBERS (SHOULD NOT BE CHANGED MANUALLY) */
22
/// connection to the database
23
UniConnection*
connectionDB
;
24
25
/// type id
26
int
i_type_id
;
27
/// type name
28
TString
str_type_name
;
29
30
// Constructor
31
UniParameterType
(
UniConnection
* db_connect,
int
type_id,
TString
type_name);
32
/* END OF PRIVATE GENERATED PART (SHOULD NOT BE CHANGED MANUALLY) */
33
34
public
:
35
/* GENERATED PUBLIC MEMBERS (SHOULD NOT BE CHANGED MANUALLY) */
36
virtual
~UniParameterType
();
// Destructor
37
38
// static class functions
39
/// add new parameter type to the database
40
static
UniParameterType
*
CreateParameterType
(
TString
type_name);
41
/// get parameter type from the database
42
static
UniParameterType
*
GetParameterType
(
int
type_id);
43
/// check parameter type exists in the database: 1- true, 0 - false, <0 - database operation error
44
static
int
CheckParameterTypeExists
(
int
type_id);
45
/// delete parameter type from the database
46
static
int
DeleteParameterType
(
int
type_id);
47
/// print all parameter types
48
static
int
PrintAll
();
49
50
// Getters
51
/// get type id of the current parameter type
52
int
GetTypeId
() {
return
i_type_id
; }
53
/// get type name of the current parameter type
54
TString
GetTypeName
() {
return
str_type_name
; }
55
56
// Setters
57
/// set type name of the current parameter type
58
int
SetTypeName
(
TString
type_name);
59
60
/// print information about current parameter type
61
void
Print
();
62
/* END OF PUBLIC GENERATED PART (SHOULD NOT BE CHANGED MANUALLY) */
63
64
ClassDef
(
UniParameterType
, 1);
65
};
66
67
#endif
ClassDef
#define ClassDef(name, id)
TDatime.h
TString.h
TTimeStamp.h
TString
UniConnection
Definition
UniConnection.h:27
UniParameterType
/home/soul/bmnroot/database/uni_db/temp/UniParameterType.h Class for the table: parameter_type
Definition
UniParameterType.h:19
UniParameterType::connectionDB
UniConnection * connectionDB
connection to the database
Definition
UniParameterType.h:23
UniParameterType::GetParameterType
static UniParameterType * GetParameterType(int type_id)
get parameter type from the database
UniParameterType::GetTypeId
int GetTypeId()
get type id of the current parameter type
Definition
UniParameterType.h:52
UniParameterType::i_type_id
int i_type_id
type id
Definition
UniParameterType.h:26
UniParameterType::str_type_name
TString str_type_name
type name
Definition
UniParameterType.h:28
UniParameterType::SetTypeName
int SetTypeName(TString type_name)
set type name of the current parameter type
UniParameterType::DeleteParameterType
static int DeleteParameterType(int type_id)
delete parameter type from the database
UniParameterType::~UniParameterType
virtual ~UniParameterType()
UniParameterType::PrintAll
static int PrintAll()
print all parameter types
UniParameterType::CheckParameterTypeExists
static int CheckParameterTypeExists(int type_id)
check parameter type exists in the database: 1- true, 0 - false, <0 - database operation error
UniParameterType::GetTypeName
TString GetTypeName()
get type name of the current parameter type
Definition
UniParameterType.h:54
UniParameterType::UniParameterType
UniParameterType(UniConnection *db_connect, int type_id, TString type_name)
UniParameterType::CreateParameterType
static UniParameterType * CreateParameterType(TString type_name)
add new parameter type to the database
UniParameterType::Print
void Print()
print information about current parameter type
UniConnection.h
install
include
UniParameterType.h
Generated on
for BmnRoot by
1.17.0