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

#include <ElogTarget.h>

Public Member Functions

virtual ~ElogTarget ()
 
TString GetTarget ()
 get target of the current target
 
bool GetIsActive ()
 get is active of the current target
 
int SetTarget (TString target)
 set target of the current target
 
int SetIsActive (bool is_active)
 set is active of the current target
 
void Print ()
 print information about current target
 
 ClassDef (ElogTarget, 1)
 
virtual ~ElogTarget ()
 
TString GetTarget ()
 get target of the current target
 
bool GetIsActive ()
 get is active of the current target
 
int SetTarget (TString target)
 set target of the current target
 
int SetIsActive (bool is_active)
 set is active of the current target
 
void Print ()
 print information about current target
 
 ClassDef (ElogTarget, 1)
 

Static Public Member Functions

static ElogTargetCreateTarget (TString target, bool is_active)
 add new target to the database
 
static ElogTargetGetTarget (TString target)
 get target from the database
 
static int CheckTargetExists (TString target)
 check target exists in the database: 1- true, 0 - false, <0 - database operation error
 
static int DeleteTarget (TString target)
 delete target from the database
 
static int PrintAll ()
 print all targets
 
static ElogTargetCreateTarget (TString target, bool is_active)
 add new target to the database
 
static ElogTargetGetTarget (TString target)
 get target from the database
 
static int CheckTargetExists (TString target)
 check target exists in the database: 1- true, 0 - false, <0 - database operation error
 
static int DeleteTarget (TString target)
 delete target from the database
 
static int PrintAll ()
 print all targets
 

Detailed Description

ElogTarget.h Class for the table: target_

Definition at line 17 of file ElogTarget.h.

Constructor & Destructor Documentation

◆ ~ElogTarget() [1/2]

ElogTarget::~ElogTarget ( )
virtual

Definition at line 25 of file ElogTarget.cxx.

◆ ~ElogTarget() [2/2]

virtual ElogTarget::~ElogTarget ( )
virtual

Member Function Documentation

◆ CheckTargetExists() [1/2]

int ElogTarget::CheckTargetExists ( TString  target)
static

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

Definition at line 113 of file ElogTarget.cxx.

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

◆ CheckTargetExists() [2/2]

static int ElogTarget::CheckTargetExists ( TString  target)
static

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

◆ ClassDef() [1/2]

ElogTarget::ClassDef ( ElogTarget  ,
 
)

◆ ClassDef() [2/2]

ElogTarget::ClassDef ( ElogTarget  ,
 
)

◆ CreateTarget() [1/2]

ElogTarget * ElogTarget::CreateTarget ( TString  target,
bool  is_active 
)
static

add new target to the database

Definition at line 32 of file ElogTarget.cxx.

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

◆ CreateTarget() [2/2]

static ElogTarget * ElogTarget::CreateTarget ( TString  target,
bool  is_active 
)
static

add new target to the database

◆ DeleteTarget() [1/2]

int ElogTarget::DeleteTarget ( TString  target)
static

delete target from the database

Definition at line 153 of file ElogTarget.cxx.

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

◆ DeleteTarget() [2/2]

static int ElogTarget::DeleteTarget ( TString  target)
static

delete target from the database

◆ GetIsActive() [1/2]

bool ElogTarget::GetIsActive ( )
inline

get is active of the current target

Definition at line 53 of file ElogTarget.h.

◆ GetIsActive() [2/2]

bool ElogTarget::GetIsActive ( )
inline

get is active of the current target

Definition at line 53 of file ElogTarget.h.

◆ GetTarget() [1/4]

TString ElogTarget::GetTarget ( )
inline

get target of the current target

Definition at line 51 of file ElogTarget.h.

◆ GetTarget() [2/4]

TString ElogTarget::GetTarget ( )
inline

get target of the current target

Definition at line 51 of file ElogTarget.h.

◆ GetTarget() [3/4]

ElogTarget * ElogTarget::GetTarget ( TString  target)
static

get target from the database

Definition at line 67 of file ElogTarget.cxx.

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

◆ GetTarget() [4/4]

static ElogTarget * ElogTarget::GetTarget ( TString  target)
static

get target from the database

◆ Print() [1/2]

void ElogTarget::Print ( )

print information about current target

Definition at line 289 of file ElogTarget.cxx.

◆ Print() [2/2]

void ElogTarget::Print ( )

print information about current target

◆ PrintAll() [1/2]

int ElogTarget::PrintAll ( )
static

print all targets

Definition at line 183 of file ElogTarget.cxx.

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

◆ PrintAll() [2/2]

static int ElogTarget::PrintAll ( )
static

print all targets

◆ SetIsActive() [1/2]

int ElogTarget::SetIsActive ( bool  is_active)

set is active of the current target

Definition at line 256 of file ElogTarget.cxx.

References ElogConnection::GetSQLServer().

◆ SetIsActive() [2/2]

int ElogTarget::SetIsActive ( bool  is_active)

set is active of the current target

◆ SetTarget() [1/2]

int ElogTarget::SetTarget ( TString  target)

set target of the current target

Definition at line 224 of file ElogTarget.cxx.

References ElogConnection::GetSQLServer().

◆ SetTarget() [2/2]

int ElogTarget::SetTarget ( TString  target)

set target of the current target


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