BmnRoot
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
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) */
23 UniConnection* connectionDB;
24
26 int i_type_id;
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
40 static UniParameterType* CreateParameterType(TString type_name);
42 static UniParameterType* GetParameterType(int type_id);
44 static int CheckParameterTypeExists(int type_id);
46 static int DeleteParameterType(int type_id);
48 static int PrintAll();
49
50 // Getters
52 int GetTypeId() { return i_type_id; }
54 TString GetTypeName() { return str_type_name; }
55
56 // Setters
58 int SetTypeName(TString type_name);
59
61 void Print();
62 /* END OF PUBLIC GENERATED PART (SHOULD NOT BE CHANGED MANUALLY) */
63
65};
66
67#endif
static UniParameterType * GetParameterType(int type_id)
get parameter type from the database
int GetTypeId()
get type id of the current parameter type
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
ClassDef(UniParameterType, 1)
static UniParameterType * CreateParameterType(TString type_name)
add new parameter type to the database
void Print()
print information about current parameter type