BOSS 7.0.4
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) |
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 Database/DatabaseSvc/DatabaseSvc-00-00-26/DatabaseSvc/DbInterface.h.
DbInterface::DbInterface | ( | ) |
Definition at line 3 of file DbInterface.cxx.
|
virtual |
Definition at line 11 of file DbInterface.cxx.
DbInterface::DbInterface | ( | ) |
|
virtual |
|
pure virtual |
Implemented in MysqlInterface, SqliteInterface, MysqlInterface, and SqliteInterface.
Referenced by DatabaseSvc::initialize().
|
pure virtual |
Implemented in MysqlInterface, SqliteInterface, MysqlInterface, and SqliteInterface.
|
pure virtual |
Implemented in MysqlInterface, SqliteInterface, MysqlInterface, and SqliteInterface.
Referenced by DatabaseSvc::finalize().
|
pure virtual |
Implemented in MysqlInterface, SqliteInterface, MysqlInterface, and SqliteInterface.
|
inline |
Definition at line 27 of file Database/DatabaseSvc/DatabaseSvc-00-00-26/DatabaseSvc/DbInterface.h.
Referenced by DatabaseSvc::finalize().
|
inline |
Definition at line 27 of file InstallArea/include/DatabaseSvc/DatabaseSvc/DbInterface.h.
|
pure virtual |
Implemented in MysqlInterface, SqliteInterface, MysqlInterface, and SqliteInterface.
|
pure virtual |
Implemented in MysqlInterface, SqliteInterface, MysqlInterface, and SqliteInterface.
|
pure virtual |
Implemented in MysqlInterface, SqliteInterface, MysqlInterface, and SqliteInterface.
Referenced by DatabaseSvc::query().
|
pure virtual |
Implemented in MysqlInterface, SqliteInterface, MysqlInterface, and SqliteInterface.
|
pure virtual |
Implemented in MysqlInterface, SqliteInterface, MysqlInterface, and SqliteInterface.
|
pure virtual |
Implemented in MysqlInterface, SqliteInterface, MysqlInterface, and SqliteInterface.
|
inline |
Definition at line 32 of file Database/DatabaseSvc/DatabaseSvc-00-00-26/DatabaseSvc/DbInterface.h.
Referenced by DatabaseSvc::initialize().
|
inline |
Definition at line 32 of file InstallArea/include/DatabaseSvc/DatabaseSvc/DbInterface.h.
|
inline |
Definition at line 29 of file Database/DatabaseSvc/DatabaseSvc-00-00-26/DatabaseSvc/DbInterface.h.
Referenced by DatabaseSvc::initialize().
|
inline |
Definition at line 29 of file InstallArea/include/DatabaseSvc/DatabaseSvc/DbInterface.h.
|
inline |
Definition at line 31 of file Database/DatabaseSvc/DatabaseSvc-00-00-26/DatabaseSvc/DbInterface.h.
Referenced by DatabaseSvc::initialize().
|
inline |
Definition at line 31 of file InstallArea/include/DatabaseSvc/DatabaseSvc/DbInterface.h.
|
inline |
Definition at line 33 of file Database/DatabaseSvc/DatabaseSvc-00-00-26/DatabaseSvc/DbInterface.h.
Referenced by DatabaseSvc::initialize().
|
inline |
Definition at line 33 of file InstallArea/include/DatabaseSvc/DatabaseSvc/DbInterface.h.
|
inline |
Definition at line 34 of file Database/DatabaseSvc/DatabaseSvc-00-00-26/DatabaseSvc/DbInterface.h.
Referenced by DatabaseSvc::initialize().
|
inline |
Definition at line 34 of file InstallArea/include/DatabaseSvc/DatabaseSvc/DbInterface.h.
|
inline |
Definition at line 30 of file Database/DatabaseSvc/DatabaseSvc-00-00-26/DatabaseSvc/DbInterface.h.
Referenced by DatabaseSvc::initialize().
|
inline |
Definition at line 30 of file InstallArea/include/DatabaseSvc/DatabaseSvc/DbInterface.h.
|
protected |
Definition at line 42 of file Database/DatabaseSvc/DatabaseSvc-00-00-26/DatabaseSvc/DbInterface.h.
Referenced by MysqlInterface::connect(), MysqlInterface::query(), MysqlInterface::select_db(), and set_host().
|
protected |
Definition at line 40 of file Database/DatabaseSvc/DatabaseSvc-00-00-26/DatabaseSvc/DbInterface.h.
Referenced by MysqlInterface::connect(), DbInterface(), SqliteInterface::disconnect(), MysqlInterface::query(), and SqliteInterface::select_db().
|
protected |
Definition at line 45 of file Database/DatabaseSvc/DatabaseSvc-00-00-26/DatabaseSvc/DbInterface.h.
Referenced by MysqlInterface::connect(), MysqlInterface::query(), MysqlInterface::select_db(), and set_passwd().
|
protected |
Definition at line 46 of file Database/DatabaseSvc/DatabaseSvc-00-00-26/DatabaseSvc/DbInterface.h.
Referenced by SqliteInterface::select_db(), and set_dbpath().
|
protected |
Definition at line 43 of file Database/DatabaseSvc/DatabaseSvc-00-00-26/DatabaseSvc/DbInterface.h.
Referenced by MysqlInterface::connect(), DbInterface(), MysqlInterface::query(), MysqlInterface::select_db(), and set_port().
|
protected |
Definition at line 44 of file Database/DatabaseSvc/DatabaseSvc-00-00-26/DatabaseSvc/DbInterface.h.
Referenced by MysqlInterface::connect(), MysqlInterface::query(), MysqlInterface::select_db(), and set_user().
|
protected |
Definition at line 37 of file Database/DatabaseSvc/DatabaseSvc-00-00-26/DatabaseSvc/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 Database/DatabaseSvc/DatabaseSvc-00-00-26/DatabaseSvc/DbInterface.h.
Referenced by MysqlInterface::connect(), DbInterface(), MysqlInterface::query(), and set_reuse_connection().