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

#include <ElogBeam.h>

Public Member Functions

virtual ~ElogBeam ()
 
TString GetBeam ()
 get beam of the current beam
 
bool GetIsActive ()
 get is active of the current beam
 
int SetBeam (TString beam)
 set beam of the current beam
 
int SetIsActive (bool is_active)
 set is active of the current beam
 
void Print ()
 print information about current beam
 
 ClassDef (ElogBeam, 1)
 
virtual ~ElogBeam ()
 
TString GetBeam ()
 get beam of the current beam
 
bool GetIsActive ()
 get is active of the current beam
 
int SetBeam (TString beam)
 set beam of the current beam
 
int SetIsActive (bool is_active)
 set is active of the current beam
 
void Print ()
 print information about current beam
 
 ClassDef (ElogBeam, 1)
 

Static Public Member Functions

static ElogBeamCreateBeam (TString beam, bool is_active)
 add new beam to the database
 
static ElogBeamGetBeam (TString beam)
 get beam from the database
 
static int CheckBeamExists (TString beam)
 check beam exists in the database: 1- true, 0 - false, <0 - database operation error
 
static int DeleteBeam (TString beam)
 delete beam from the database
 
static int PrintAll ()
 print all beams
 
static ElogBeamCreateBeam (TString beam, bool is_active)
 add new beam to the database
 
static ElogBeamGetBeam (TString beam)
 get beam from the database
 
static int CheckBeamExists (TString beam)
 check beam exists in the database: 1- true, 0 - false, <0 - database operation error
 
static int DeleteBeam (TString beam)
 delete beam from the database
 
static int PrintAll ()
 print all beams
 

Detailed Description

ElogBeam.h Class for the table: beam_

Definition at line 17 of file ElogBeam.h.

Constructor & Destructor Documentation

◆ ~ElogBeam() [1/2]

ElogBeam::~ElogBeam ( )
virtual

Definition at line 25 of file ElogBeam.cxx.

◆ ~ElogBeam() [2/2]

virtual ElogBeam::~ElogBeam ( )
virtual

Member Function Documentation

◆ CheckBeamExists() [1/2]

int ElogBeam::CheckBeamExists ( TString  beam)
static

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

Definition at line 113 of file ElogBeam.cxx.

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

◆ CheckBeamExists() [2/2]

static int ElogBeam::CheckBeamExists ( TString  beam)
static

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

◆ ClassDef() [1/2]

ElogBeam::ClassDef ( ElogBeam  ,
 
)

◆ ClassDef() [2/2]

ElogBeam::ClassDef ( ElogBeam  ,
 
)

◆ CreateBeam() [1/2]

ElogBeam * ElogBeam::CreateBeam ( TString  beam,
bool  is_active 
)
static

add new beam to the database

Definition at line 32 of file ElogBeam.cxx.

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

◆ CreateBeam() [2/2]

static ElogBeam * ElogBeam::CreateBeam ( TString  beam,
bool  is_active 
)
static

add new beam to the database

◆ DeleteBeam() [1/2]

int ElogBeam::DeleteBeam ( TString  beam)
static

delete beam from the database

Definition at line 153 of file ElogBeam.cxx.

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

◆ DeleteBeam() [2/2]

static int ElogBeam::DeleteBeam ( TString  beam)
static

delete beam from the database

◆ GetBeam() [1/4]

TString ElogBeam::GetBeam ( )
inline

get beam of the current beam

Definition at line 51 of file ElogBeam.h.

◆ GetBeam() [2/4]

TString ElogBeam::GetBeam ( )
inline

get beam of the current beam

Definition at line 51 of file ElogBeam.h.

◆ GetBeam() [3/4]

ElogBeam * ElogBeam::GetBeam ( TString  beam)
static

get beam from the database

Definition at line 67 of file ElogBeam.cxx.

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

◆ GetBeam() [4/4]

static ElogBeam * ElogBeam::GetBeam ( TString  beam)
static

get beam from the database

◆ GetIsActive() [1/2]

bool ElogBeam::GetIsActive ( )
inline

get is active of the current beam

Definition at line 53 of file ElogBeam.h.

◆ GetIsActive() [2/2]

bool ElogBeam::GetIsActive ( )
inline

get is active of the current beam

Definition at line 53 of file ElogBeam.h.

◆ Print() [1/2]

void ElogBeam::Print ( )

print information about current beam

Definition at line 289 of file ElogBeam.cxx.

◆ Print() [2/2]

void ElogBeam::Print ( )

print information about current beam

◆ PrintAll() [1/2]

int ElogBeam::PrintAll ( )
static

print all beams

Definition at line 183 of file ElogBeam.cxx.

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

◆ PrintAll() [2/2]

static int ElogBeam::PrintAll ( )
static

print all beams

◆ SetBeam() [1/2]

int ElogBeam::SetBeam ( TString  beam)

set beam of the current beam

Definition at line 224 of file ElogBeam.cxx.

References ElogConnection::GetSQLServer().

◆ SetBeam() [2/2]

int ElogBeam::SetBeam ( TString  beam)

set beam of the current beam

◆ SetIsActive() [1/2]

int ElogBeam::SetIsActive ( bool  is_active)

set is active of the current beam

Definition at line 256 of file ElogBeam.cxx.

References ElogConnection::GetSQLServer().

◆ SetIsActive() [2/2]

int ElogBeam::SetIsActive ( bool  is_active)

set is active of the current beam


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