BmnRoot
Loading...
Searching...
No Matches
ElogType Class Reference

#include <ElogType.h>

Public Member Functions

virtual ~ElogType ()
 
int GetTypeId ()
 get type id of the current type
 
TString GetTypeText ()
 get type text of the current type
 
int SetTypeText (TString type_text)
 set type text of the current type
 
void Print ()
 print information about current type
 
 ClassDef (ElogType, 1)
 
virtual ~ElogType ()
 
int GetTypeId ()
 get type id of the current type
 
TString GetTypeText ()
 get type text of the current type
 
int SetTypeText (TString type_text)
 set type text of the current type
 
void Print ()
 print information about current type
 
 ClassDef (ElogType, 1)
 

Static Public Member Functions

static ElogTypeCreateType (TString type_text)
 add new type to the database
 
static ElogTypeGetType (int type_id)
 get type from the database
 
static ElogTypeGetType (TString type_text)
 get type from the database
 
static int CheckTypeExists (int type_id)
 check type exists in the database: 1- true, 0 - false, <0 - database operation error
 
static int CheckTypeExists (TString type_text)
 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 int DeleteType (TString type_text)
 delete type from the database
 
static int PrintAll ()
 print all types
 
static ElogTypeCreateType (TString type_text)
 add new type to the database
 
static ElogTypeGetType (int type_id)
 get type from the database
 
static ElogTypeGetType (TString type_text)
 get type from the database
 
static int CheckTypeExists (int type_id)
 check type exists in the database: 1- true, 0 - false, <0 - database operation error
 
static int CheckTypeExists (TString type_text)
 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 int DeleteType (TString type_text)
 delete type from the database
 
static int PrintAll ()
 print all types
 

Detailed Description

ElogType.h Class for the table: type_

Definition at line 17 of file ElogType.h.

Constructor & Destructor Documentation

◆ ~ElogType() [1/2]

ElogType::~ElogType ( )
virtual

Definition at line 25 of file ElogType.cxx.

◆ ~ElogType() [2/2]

virtual ElogType::~ElogType ( )
virtual

Member Function Documentation

◆ CheckTypeExists() [1/4]

int ElogType::CheckTypeExists ( int  type_id)
static

check type exists in the database: 1- true, 0 - false, <0 - database operation error

Definition at line 182 of file ElogType.cxx.

References ElogConnection::GetSQLServer(), and ElogConnection::Open().

◆ CheckTypeExists() [2/4]

static int ElogType::CheckTypeExists ( int  type_id)
static

check type exists in the database: 1- true, 0 - false, <0 - database operation error

◆ CheckTypeExists() [3/4]

int ElogType::CheckTypeExists ( TString  type_text)
static

check type exists in the database: 1- true, 0 - false, <0 - database operation error

Definition at line 222 of file ElogType.cxx.

References ElogConnection::GetSQLServer(), and ElogConnection::Open().

◆ CheckTypeExists() [4/4]

static int ElogType::CheckTypeExists ( TString  type_text)
static

check type exists in the database: 1- true, 0 - false, <0 - database operation error

◆ ClassDef() [1/2]

ElogType::ClassDef ( ElogType  ,
 
)

◆ ClassDef() [2/2]

ElogType::ClassDef ( ElogType  ,
 
)

◆ CreateType() [1/2]

ElogType * ElogType::CreateType ( TString  type_text)
static

add new type to the database

Definition at line 32 of file ElogType.cxx.

References ElogConnection::GetSQLServer(), and ElogConnection::Open().

◆ CreateType() [2/2]

static ElogType * ElogType::CreateType ( TString  type_text)
static

add new type to the database

◆ DeleteType() [1/4]

int ElogType::DeleteType ( int  type_id)
static

delete type from the database

Definition at line 262 of file ElogType.cxx.

References ElogConnection::GetSQLServer(), and ElogConnection::Open().

◆ DeleteType() [2/4]

static int ElogType::DeleteType ( int  type_id)
static

delete type from the database

◆ DeleteType() [3/4]

int ElogType::DeleteType ( TString  type_text)
static

delete type from the database

Definition at line 292 of file ElogType.cxx.

References ElogConnection::GetSQLServer(), and ElogConnection::Open().

◆ DeleteType() [4/4]

static int ElogType::DeleteType ( TString  type_text)
static

delete type from the database

◆ GetType() [1/4]

ElogType * ElogType::GetType ( int  type_id)
static

get type from the database

Definition at line 90 of file ElogType.cxx.

References ElogConnection::GetSQLServer(), and ElogConnection::Open().

◆ GetType() [2/4]

static ElogType * ElogType::GetType ( int  type_id)
static

get type from the database

◆ GetType() [3/4]

ElogType * ElogType::GetType ( TString  type_text)
static

get type from the database

Definition at line 136 of file ElogType.cxx.

References ElogConnection::GetSQLServer(), and ElogConnection::Open().

◆ GetType() [4/4]

static ElogType * ElogType::GetType ( TString  type_text)
static

get type from the database

◆ GetTypeId() [1/2]

int ElogType::GetTypeId ( )
inline

get type id of the current type

Definition at line 57 of file ElogType.h.

◆ GetTypeId() [2/2]

int ElogType::GetTypeId ( )
inline

get type id of the current type

Definition at line 57 of file ElogType.h.

◆ GetTypeText() [1/2]

TString ElogType::GetTypeText ( )
inline

get type text of the current type

Definition at line 59 of file ElogType.h.

◆ GetTypeText() [2/2]

TString ElogType::GetTypeText ( )
inline

get type text of the current type

Definition at line 59 of file ElogType.h.

◆ Print() [1/2]

void ElogType::Print ( )

print information about current type

Definition at line 396 of file ElogType.cxx.

◆ Print() [2/2]

void ElogType::Print ( )

print information about current type

◆ PrintAll() [1/2]

int ElogType::PrintAll ( )
static

print all types

Definition at line 322 of file ElogType.cxx.

References ElogConnection::GetSQLServer(), and ElogConnection::Open().

◆ PrintAll() [2/2]

static int ElogType::PrintAll ( )
static

print all types

◆ SetTypeText() [1/2]

int ElogType::SetTypeText ( TString  type_text)

set type text of the current type

Definition at line 363 of file ElogType.cxx.

References ElogConnection::GetSQLServer().

◆ SetTypeText() [2/2]

int ElogType::SetTypeText ( TString  type_text)

set type text of the current type


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