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

#include <TangoConnection.h>

Collaboration diagram for TangoConnection:
[legend]

Public Types

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

Public Member Functions

virtual ~TangoConnection ()
 
TSQLServer * GetSQLServer ()
 
virtual ~TangoConnection ()
 
TSQLServer * GetSQLServer ()
 

Static Public Member Functions

static TangoConnectionOpen ()
 
static TangoConnectionOpen (enumDBMS database_type, const char *strDBHost, const char *strDBName, const char *strUID, const char *strPassword)
 
static const char * DbToString ()
 
static TangoConnectionOpen ()
 
static TangoConnectionOpen (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 TangoConnection.h.

Member Enumeration Documentation

◆ enumDBMS [1/2]

Enumerator
MySQL 
PgSQL 
MySQL 
PgSQL 

Definition at line 29 of file TangoConnection.h.

◆ enumDBMS [2/2]

Enumerator
MySQL 
PgSQL 
MySQL 
PgSQL 

Definition at line 29 of file TangoConnection.h.

Constructor & Destructor Documentation

◆ ~TangoConnection() [1/2]

TangoConnection::~TangoConnection ( )
virtual

Definition at line 85 of file TangoConnection.cxx.

◆ ~TangoConnection() [2/2]

virtual TangoConnection::~TangoConnection ( )
virtual

Member Function Documentation

◆ DbToString() [1/2]

static const char * TangoConnection::DbToString ( )
inlinestatic

Definition at line 45 of file TangoConnection.h.

◆ DbToString() [2/2]

static const char * TangoConnection::DbToString ( )
inlinestatic

Definition at line 45 of file TangoConnection.h.

◆ GetSQLServer() [1/2]

TSQLServer * TangoConnection::GetSQLServer ( )
inline

Definition at line 43 of file TangoConnection.h.

◆ GetSQLServer() [2/2]

TSQLServer * TangoConnection::GetSQLServer ( )
inline

Definition at line 43 of file TangoConnection.h.

◆ Open() [1/4]

TangoConnection * TangoConnection::Open ( )
static

Definition at line 54 of file TangoConnection.cxx.

References TANGO_DB_HOST, TANGO_DB_NAME, TANGO_DB_PASSWORD, and TANGO_DB_USERNAME.

◆ Open() [2/4]

static TangoConnection * TangoConnection::Open ( )
static

◆ Open() [3/4]

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

Definition at line 61 of file TangoConnection.cxx.

References MySQL, and PgSQL.

◆ Open() [4/4]

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

Member Data Documentation

◆ mapConnection

static mapSQLServer * TangoConnection::mapConnection = nullptr
staticprotected

Definition at line 48 of file TangoConnection.h.


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