BOSS 7.1.0
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_port (int port) |
void | set_reuse_connection (bool flag) |
Protected Attributes | |
bool | m_isConnected |
bool | m_reuseConnection |
std::string | m_dbName |
std::string | m_dbHost |
int | m_dbPort |
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 11 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().
|
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 |
|
inline |
Definition at line 30 of file DbInterface.h.
Referenced by DatabaseSvc::initialize().
|
protected |
Definition at line 42 of file DbInterface.h.
Referenced by MysqlInterface::connect(), MysqlInterface::query(), MysqlInterface::select_db(), and set_host().
|
protected |
Definition at line 40 of file DbInterface.h.
Referenced by MysqlInterface::connect(), DbInterface(), SqliteInterface::disconnect(), MysqlInterface::query(), and SqliteInterface::select_db().
|
protected |
Definition at line 45 of file DbInterface.h.
Referenced by MysqlInterface::connect(), MysqlInterface::query(), MysqlInterface::select_db(), and set_passwd().
|
protected |
Definition at line 46 of file DbInterface.h.
Referenced by SqliteInterface::select_db(), and set_dbpath().
|
protected |
Definition at line 43 of file DbInterface.h.
Referenced by MysqlInterface::connect(), DbInterface(), MysqlInterface::query(), MysqlInterface::select_db(), and set_port().
|
protected |
Definition at line 44 of file DbInterface.h.
Referenced by MysqlInterface::connect(), MysqlInterface::query(), MysqlInterface::select_db(), and set_user().
|
protected |
Definition at line 37 of file DbInterface.h.
Referenced by SqliteInterface::connect(), MysqlInterface::connect(), DbInterface(), MysqlInterface::disconnect(), SqliteInterface::disconnect(), is_connected(), and SqliteInterface::select_db().
|
protected |
Definition at line 38 of file DbInterface.h.
Referenced by MysqlInterface::connect(), DbInterface(), MysqlInterface::query(), and set_reuse_connection().