Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DESDBProviderMySQL Class Reference

#include <DESDBProviderMySQL.h>

+ Inheritance diagram for DESDBProviderMySQL:

Public Member Functions

 DESDBProviderMySQL (string connection_str)
 
virtual ~DESDBProviderMySQL ()
 
bool Open ()
 
bool GetGrades (vector< string > &grades)
 
bool GetSkims (vector< string > &grades, string timestamp, string grade)
 

Protected Member Functions

bool Connect ()
 
void Disconnect ()
 
bool IsConnected ()
 
string FormatMySQLError (string mysql_func_name)
 

Protected Attributes

string user_name
 
string password
 
string host_name
 
string database
 
int port
 
MYSQL * DBptr
 
MYSQL_RES * DBresult
 
bool is_connected
 

Detailed Description

Definition at line 27 of file DESDBProviderMySQL.h.

Constructor & Destructor Documentation

DESDBProviderMySQL::DESDBProviderMySQL ( string  connection_str)

Definition at line 19 of file DESDBProviderMySQL.cc.

References database, DBresult, host_name, is_connected, password, port, string, and user_name.

DESDBProviderMySQL::~DESDBProviderMySQL ( )
virtual

Definition at line 103 of file DESDBProviderMySQL.cc.

References Disconnect().

Member Function Documentation

bool DESDBProviderMySQL::Connect ( )
protected

Definition at line 127 of file DESDBProviderMySQL.cc.

References database, DBptr, FormatMySQLError(), host_name, is_connected, IsConnected(), password, port, and user_name.

Referenced by Open().

void DESDBProviderMySQL::Disconnect ( )
protected

Definition at line 147 of file DESDBProviderMySQL.cc.

References DBptr, and IsConnected().

Referenced by ~DESDBProviderMySQL().

string DESDBProviderMySQL::FormatMySQLError ( string  mysql_func_name)
inlineprotected

Definition at line 57 of file DESDBProviderMySQL.h.

Referenced by Connect(), GetGrades(), and GetSkims().

bool DESDBProviderMySQL::GetGrades ( vector< string > &  grades)
virtual

Implements DESDBProvider.

Definition at line 159 of file DESDBProviderMySQL.cc.

References DBptr, DBresult, and FormatMySQLError().

bool DESDBProviderMySQL::GetSkims ( vector< string > &  grades,
string  timestamp,
string  grade 
)
virtual

Implements DESDBProvider.

Definition at line 202 of file DESDBProviderMySQL.cc.

References DBptr, DBresult, and FormatMySQLError().

bool DESDBProviderMySQL::IsConnected ( )
inlineprotected

Definition at line 54 of file DESDBProviderMySQL.h.

Referenced by Connect(), and Disconnect().

bool DESDBProviderMySQL::Open ( )
virtual

Implements DESDBProvider.

Definition at line 112 of file DESDBProviderMySQL.cc.

References Connect(), and DBptr.

Member Data Documentation

string DESDBProviderMySQL::database
protected

Definition at line 43 of file DESDBProviderMySQL.h.

Referenced by Connect(), and DESDBProviderMySQL().

MYSQL* DESDBProviderMySQL::DBptr
protected

Definition at line 46 of file DESDBProviderMySQL.h.

Referenced by Connect(), Disconnect(), GetGrades(), GetSkims(), and Open().

MYSQL_RES* DESDBProviderMySQL::DBresult
protected

Definition at line 47 of file DESDBProviderMySQL.h.

Referenced by DESDBProviderMySQL(), GetGrades(), and GetSkims().

string DESDBProviderMySQL::host_name
protected

Definition at line 42 of file DESDBProviderMySQL.h.

Referenced by Connect(), and DESDBProviderMySQL().

bool DESDBProviderMySQL::is_connected
protected

Definition at line 48 of file DESDBProviderMySQL.h.

Referenced by Connect(), and DESDBProviderMySQL().

string DESDBProviderMySQL::password
protected

Definition at line 41 of file DESDBProviderMySQL.h.

Referenced by Connect(), and DESDBProviderMySQL().

int DESDBProviderMySQL::port
protected

Definition at line 44 of file DESDBProviderMySQL.h.

Referenced by Connect(), and DESDBProviderMySQL().

string DESDBProviderMySQL::user_name
protected

Definition at line 40 of file DESDBProviderMySQL.h.

Referenced by Connect(), and DESDBProviderMySQL().


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