BmnRoot
Loading...
Searching...
No Matches
ElogType.h
Go to the documentation of this file.
1// ----------------------------------------------------------------------
2// ElogType header file
3// Generated 27-11-2017
4// ----------------------------------------------------------------------
5
10#ifndef ElogType_H
11#define ElogType_H 1
12
13#include "ElogConnection.h"
14#include "TDatime.h"
15#include "TString.h"
16
17class ElogType
18{
19 private:
20 /* GENERATED PRIVATE MEMBERS (SHOULD NOT BE CHANGED MANUALLY) */
22 ElogConnection* connectionDB;
23
25 int i_type_id;
27 TString str_type_text;
28
29 // Constructor
30 ElogType(ElogConnection* db_connect, int type_id, TString type_text);
31 /* END OF PRIVATE GENERATED PART (SHOULD NOT BE CHANGED MANUALLY) */
32
33 public:
34 /* GENERATED PUBLIC MEMBERS (SHOULD NOT BE CHANGED MANUALLY) */
35 virtual ~ElogType(); // Destructor
36
37 // static class functions
39 static ElogType* CreateType(TString type_text);
41 static ElogType* GetType(int type_id);
43 static ElogType* GetType(TString type_text);
45 static int CheckTypeExists(int type_id);
47 static int CheckTypeExists(TString type_text);
49 static int DeleteType(int type_id);
51 static int DeleteType(TString type_text);
53 static int PrintAll();
54
55 // Getters
57 int GetTypeId() { return i_type_id; }
59 TString GetTypeText() { return str_type_text; }
60
61 // Setters
63 int SetTypeText(TString type_text);
64
66 void Print();
67 /* END OF PUBLIC GENERATED PART (SHOULD NOT BE CHANGED MANUALLY) */
68
70};
71
72#endif
ClassDef(ElogType, 1)
virtual ~ElogType()
static ElogType * CreateType(TString type_text)
add new type to the database
static int CheckTypeExists(TString type_text)
check type exists in the database: 1- true, 0 - false, <0 - database operation error
static int CheckTypeExists(int type_id)
check type exists in the database: 1- true, 0 - false, <0 - database operation error
static int DeleteType(int type_id)
delete type from the database
static ElogType * GetType(TString type_text)
get type from the database
static int DeleteType(TString type_text)
delete type from the database
static int PrintAll()
print all types
TString GetTypeText()
get type text of the current type
Definition ElogType.h:59
static ElogType * GetType(int type_id)
get type from the database
int GetTypeId()
get type id of the current type
Definition ElogType.h:57
void Print()
print information about current type
int SetTypeText(TString type_text)
set type text of the current type