CGEM BOSS 6.6.5.h
BESIII Offline Software System
|
#include <DbInterface.h>
Public Member Functions | |
DbInterface () | |
virtual | ~DbInterface () |
virtual int | connect ()=0 |
virtual int | select_db (std::string dbname)=0 |
virtual int | query (std::string dbname, std::string query, DatabaseRecordVector &records)=0 |
virtual int | query (std::string dbname, std::string query)=0 |
virtual int | disconnect ()=0 |
bool | is_connected () |
void | set_host (std::string host) |
void | set_user (std::string user) |
void | set_passwd (std::string passwd) |
void | set_dbpath (std::string path) |
void | set_reuse_connection (bool flag) |
Protected Attributes | |
bool | m_isConnected |
bool | m_reuseConnection |
std::string | m_dbName |
std::string | m_dbHost |
std::string | m_dbUser |
std::string | m_dbPasswd |
std::string | m_dbPath |
Definition at line 10 of file DbInterface.h.
DbInterface::DbInterface | ( | ) |
Definition at line 3 of file DbInterface.cxx.
|
virtual |
Definition at line 10 of file DbInterface.cxx.
|
pure virtual |
Implemented in MysqlInterface, and SqliteInterface.
Referenced by DatabaseSvc::initialize().
|
pure virtual |
Implemented in MysqlInterface, and SqliteInterface.
Referenced by DatabaseSvc::finalize().
|
inline |
|
pure virtual |
Implemented in MysqlInterface, and SqliteInterface.
|
pure virtual |
Implemented in MysqlInterface, and SqliteInterface.
Referenced by DatabaseSvc::query(), and DatabaseSvc::query().
|
pure virtual |
Implemented in MysqlInterface, and SqliteInterface.
|
inline |
Definition at line 32 of file DbInterface.h.
Referenced by DatabaseSvc::initialize().
|
inline |
Definition at line 29 of file DbInterface.h.
Referenced by DatabaseSvc::initialize().
|
inline |
Definition at line 31 of file DbInterface.h.
Referenced by DatabaseSvc::initialize().
|
inline |
Definition at line 33 of file DbInterface.h.
Referenced by DatabaseSvc::initialize().
|
inline |
Definition at line 30 of file DbInterface.h.
Referenced by DatabaseSvc::initialize().
|
protected |
Definition at line 41 of file DbInterface.h.
Referenced by MysqlInterface::connect(), MysqlInterface::query(), MysqlInterface::query(), MysqlInterface::select_db(), and set_host().
|
protected |
Definition at line 39 of file DbInterface.h.
Referenced by MysqlInterface::connect(), DbInterface(), SqliteInterface::disconnect(), MysqlInterface::query(), MysqlInterface::query(), and SqliteInterface::select_db().
|
protected |
Definition at line 43 of file DbInterface.h.
Referenced by MysqlInterface::connect(), MysqlInterface::query(), MysqlInterface::query(), MysqlInterface::select_db(), and set_passwd().
|
protected |
Definition at line 44 of file DbInterface.h.
Referenced by SqliteInterface::select_db(), and set_dbpath().
|
protected |
Definition at line 42 of file DbInterface.h.
Referenced by MysqlInterface::connect(), MysqlInterface::query(), MysqlInterface::query(), MysqlInterface::select_db(), and set_user().
|
protected |
Definition at line 36 of file DbInterface.h.
Referenced by MysqlInterface::connect(), SqliteInterface::connect(), DbInterface(), MysqlInterface::disconnect(), SqliteInterface::disconnect(), is_connected(), and SqliteInterface::select_db().
|
protected |
Definition at line 37 of file DbInterface.h.
Referenced by MysqlInterface::connect(), DbInterface(), MysqlInterface::query(), MysqlInterface::query(), and set_reuse_connection().