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

#include <ElogConnection.h>

Inheritance diagram for ElogConnection:
[legend]
Collaboration diagram for ElogConnection:
[legend]

Public Types

enum  enumDBMS { MySQL , PgSQL , MySQL , PgSQL }
 
enum  enumDBMS { MySQL , PgSQL , MySQL , PgSQL }
 

Public Member Functions

virtual ~ElogConnection ()
 
TSQLServer * GetSQLServer ()
 
virtual ~ElogConnection ()
 
TSQLServer * GetSQLServer ()
 

Static Public Member Functions

static ElogConnectionOpen ()
 
static ElogConnectionOpen (enumDBMS database_type, const char *strDBHost, const char *strDBName, const char *strUID, const char *strPassword)
 
static const char * DbToString ()
 
static ElogConnectionOpen ()
 
static ElogConnectionOpen (enumDBMS database_type, const char *strDBHost, const char *strDBName, const char *strUID, const char *strPassword)
 
static const char * DbToString ()
 

Static Protected Attributes

static mapSQLServermapConnection = nullptr
 

Detailed Description

Definition at line 26 of file ElogConnection.h.

Member Enumeration Documentation

◆ enumDBMS [1/2]

Enumerator
MySQL 
PgSQL 
MySQL 
PgSQL 

Definition at line 29 of file ElogConnection.h.

◆ enumDBMS [2/2]

Enumerator
MySQL 
PgSQL 
MySQL 
PgSQL 

Definition at line 29 of file ElogConnection.h.

Constructor & Destructor Documentation

◆ ~ElogConnection() [1/2]

ElogConnection::~ElogConnection ( )
virtual

Definition at line 96 of file ElogConnection.cxx.

◆ ~ElogConnection() [2/2]

virtual ElogConnection::~ElogConnection ( )
virtual

Member Function Documentation

◆ DbToString() [1/2]

static const char * ElogConnection::DbToString ( )
inlinestatic

Definition at line 45 of file ElogConnection.h.

◆ DbToString() [2/2]

static const char * ElogConnection::DbToString ( )
inlinestatic

Definition at line 45 of file ElogConnection.h.

◆ GetSQLServer() [1/2]

TSQLServer * ElogConnection::GetSQLServer ( )
inline

Definition at line 43 of file ElogConnection.h.

Referenced by ElogAttachment::CheckAttachmentExists(), ElogAttachment::CheckAttachmentExists(), ElogBeam::CheckBeamExists(), ElogContact::CheckContactExists(), ElogPerson::CheckPersonExists(), ElogPerson::CheckPersonExistsByName(), ElogRecord::CheckRecordExists(), ElogStatus::CheckStatusExists(), ElogStatus::CheckStatusExists(), ElogTarget::CheckTargetExists(), ElogTrigger::CheckTriggerExists(), ElogTrigger::CheckTriggerExists(), ElogType::CheckTypeExists(), ElogType::CheckTypeExists(), UniParser::ConvertElogCsv(), ElogAttachment::CreateAttachment(), ElogBeam::CreateBeam(), ElogContact::CreateContact(), ElogPerson::CreatePerson(), ElogRecord::CreateRecord(), ElogStatus::CreateStatus(), ElogTarget::CreateTarget(), ElogTrigger::CreateTrigger(), ElogType::CreateType(), ElogAttachment::DeleteAttachment(), ElogAttachment::DeleteAttachment(), ElogBeam::DeleteBeam(), ElogContact::DeleteContact(), ElogPerson::DeletePerson(), ElogPerson::DeletePersonByName(), ElogRecord::DeleteRecord(), ElogStatus::DeleteStatus(), ElogStatus::DeleteStatus(), ElogTarget::DeleteTarget(), ElogTrigger::DeleteTrigger(), ElogTrigger::DeleteTrigger(), ElogType::DeleteType(), ElogType::DeleteType(), ElogAttachment::GetAttachment(), ElogAttachment::GetAttachment(), ElogBeam::GetBeam(), ElogContact::GetContact(), ElogPerson::GetPerson(), ElogPerson::GetPersonByName(), ElogRecord::GetRecord(), ElogRecord::GetRecords(), ElogStatus::GetStatus(), ElogStatus::GetStatus(), ElogTarget::GetTarget(), ElogTrigger::GetTrigger(), ElogTrigger::GetTrigger(), ElogType::GetType(), ElogType::GetType(), ElogAttachment::PrintAll(), ElogBeam::PrintAll(), ElogContact::PrintAll(), ElogPerson::PrintAll(), ElogRecord::PrintAll(), ElogStatus::PrintAll(), ElogTarget::PrintAll(), ElogTrigger::PrintAll(), ElogType::PrintAll(), ElogRecord::Search(), ElogAttachment::SetAttachmentNumber(), ElogBeam::SetBeam(), ElogRecord::SetBeam(), ElogContact::SetContactDesc(), ElogContact::SetContactName(), ElogRecord::SetDaqStatus(), ElogContact::SetEmail(), ElogPerson::SetEmail(), ElogRecord::SetEnergy(), ElogAttachment::SetFilePath(), ElogBeam::SetIsActive(), ElogPerson::SetIsActive(), ElogTarget::SetIsActive(), ElogTrigger::SetIsActive(), ElogRecord::SetPeriodNumber(), ElogPerson::SetPersonName(), ElogContact::SetPhones(), ElogRecord::SetRecordComment(), ElogRecord::SetRecordDate(), ElogAttachment::SetRecordId(), ElogRecord::SetRunNumber(), ElogRecord::SetShiftLeaderId(), ElogRecord::SetSp41(), ElogRecord::SetSp57(), ElogStatus::SetStatusText(), ElogRecord::SetSystemStatusId(), ElogRecord::SetTarget(), ElogTarget::SetTarget(), ElogRecord::SetTargetWidth(), ElogRecord::SetTriggerId(), ElogTrigger::SetTriggerInfo(), ElogRecord::SetTypeId(), ElogType::SetTypeText(), and ElogRecord::SetVkm2().

◆ GetSQLServer() [2/2]

TSQLServer * ElogConnection::GetSQLServer ( )
inline

Definition at line 43 of file ElogConnection.h.

◆ Open() [1/4]

ElogConnection * ElogConnection::Open ( )
static

Definition at line 55 of file ElogConnection.cxx.

References ELOG_DB_HOST, ELOG_DB_NAME, ELOG_DB_PASSWORD, and ELOG_DB_USERNAME.

Referenced by ElogAttachment::CheckAttachmentExists(), ElogAttachment::CheckAttachmentExists(), ElogBeam::CheckBeamExists(), ElogContact::CheckContactExists(), ElogPerson::CheckPersonExists(), ElogPerson::CheckPersonExistsByName(), ElogRecord::CheckRecordExists(), ElogStatus::CheckStatusExists(), ElogStatus::CheckStatusExists(), ElogTarget::CheckTargetExists(), ElogTrigger::CheckTriggerExists(), ElogTrigger::CheckTriggerExists(), ElogType::CheckTypeExists(), ElogType::CheckTypeExists(), UniParser::ConvertElogCsv(), ElogAttachment::CreateAttachment(), ElogBeam::CreateBeam(), ElogContact::CreateContact(), ElogPerson::CreatePerson(), ElogRecord::CreateRecord(), ElogStatus::CreateStatus(), ElogTarget::CreateTarget(), ElogTrigger::CreateTrigger(), ElogType::CreateType(), ElogAttachment::DeleteAttachment(), ElogAttachment::DeleteAttachment(), ElogBeam::DeleteBeam(), ElogContact::DeleteContact(), ElogPerson::DeletePerson(), ElogPerson::DeletePersonByName(), ElogRecord::DeleteRecord(), ElogStatus::DeleteStatus(), ElogStatus::DeleteStatus(), ElogTarget::DeleteTarget(), ElogTrigger::DeleteTrigger(), ElogTrigger::DeleteTrigger(), ElogType::DeleteType(), ElogType::DeleteType(), ElogAttachment::GetAttachment(), ElogAttachment::GetAttachment(), ElogBeam::GetBeam(), ElogContact::GetContact(), ElogPerson::GetPerson(), ElogPerson::GetPersonByName(), ElogRecord::GetRecord(), ElogRecord::GetRecords(), ElogStatus::GetStatus(), ElogStatus::GetStatus(), ElogTarget::GetTarget(), ElogTrigger::GetTrigger(), ElogTrigger::GetTrigger(), ElogType::GetType(), ElogType::GetType(), ElogAttachment::PrintAll(), ElogBeam::PrintAll(), ElogContact::PrintAll(), ElogPerson::PrintAll(), ElogRecord::PrintAll(), ElogStatus::PrintAll(), ElogTarget::PrintAll(), ElogTrigger::PrintAll(), ElogType::PrintAll(), and ElogRecord::Search().

◆ Open() [2/4]

static ElogConnection * ElogConnection::Open ( )
static

◆ Open() [3/4]

ElogConnection * ElogConnection::Open ( enumDBMS  database_type,
const char *  strDBHost,
const char *  strDBName,
const char *  strUID,
const char *  strPassword 
)
static

Definition at line 72 of file ElogConnection.cxx.

References MySQL, and PgSQL.

◆ Open() [4/4]

static ElogConnection * ElogConnection::Open ( enumDBMS  database_type,
const char *  strDBHost,
const char *  strDBName,
const char *  strUID,
const char *  strPassword 
)
static

Member Data Documentation

◆ mapConnection

static mapSQLServer * ElogConnection::mapConnection = nullptr
staticprotected

Definition at line 48 of file ElogConnection.h.


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