BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
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
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
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
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
65};
66
67#endif
#define ClassDef(name, id)
/home/soul/bmnroot/database/uni_db/temp/UniParameterType.h Class for the table: parameter_type
UniConnection * connectionDB
connection to the database
static UniParameterType * GetParameterType(int type_id)
get parameter type from the database
int GetTypeId()
get type id of the current parameter type
TString str_type_name
type name
int SetTypeName(TString type_name)
set type name of the current parameter type
static int DeleteParameterType(int type_id)
delete parameter type from the database
virtual ~UniParameterType()
static int PrintAll()
print all parameter types
static int CheckParameterTypeExists(int type_id)
check parameter type exists in the database: 1- true, 0 - false, <0 - database operation error
TString GetTypeName()
get type name of the current parameter type
UniParameterType(UniConnection *db_connect, int type_id, TString type_name)
static UniParameterType * CreateParameterType(TString type_name)
add new parameter type to the database
void Print()
print information about current parameter type