CGEM BOSS 6.6.5.f
BESIII Offline Software System
Loading...
Searching...
No Matches
DbInterface Class Referenceabstract

#include <DbInterface.h>

+ Inheritance diagram for DbInterface:

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)
 
 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
 

Detailed Description

Constructor & Destructor Documentation

◆ DbInterface() [1/2]

◆ ~DbInterface() [1/2]

DbInterface::~DbInterface ( )
virtual

Definition at line 10 of file DbInterface.cxx.

11{
12}

◆ DbInterface() [2/2]

DbInterface::DbInterface ( )

◆ ~DbInterface() [2/2]

virtual DbInterface::~DbInterface ( )
virtual

Member Function Documentation

◆ connect() [1/2]

virtual int DbInterface::connect ( )
pure virtual

◆ connect() [2/2]

virtual int DbInterface::connect ( )
pure virtual

◆ disconnect() [1/2]

virtual int DbInterface::disconnect ( )
pure virtual

◆ disconnect() [2/2]

virtual int DbInterface::disconnect ( )
pure virtual

◆ is_connected() [1/2]

bool DbInterface::is_connected ( )
inline

◆ is_connected() [2/2]

bool DbInterface::is_connected ( )
inline

◆ query() [1/4]

virtual int DbInterface::query ( std::string  dbname,
std::string  query 
)
pure virtual

◆ query() [2/4]

virtual int DbInterface::query ( std::string  dbname,
std::string  query 
)
pure virtual

◆ query() [3/4]

virtual int DbInterface::query ( std::string  dbname,
std::string  query,
DatabaseRecordVector records 
)
pure virtual

◆ query() [4/4]

virtual int DbInterface::query ( std::string  dbname,
std::string  query,
DatabaseRecordVector records 
)
pure virtual

◆ select_db() [1/2]

virtual int DbInterface::select_db ( std::string  dbname)
pure virtual

◆ select_db() [2/2]

virtual int DbInterface::select_db ( std::string  dbname)
pure virtual

◆ set_dbpath() [1/2]

void DbInterface::set_dbpath ( std::string  path)
inline

◆ set_dbpath() [2/2]

void DbInterface::set_dbpath ( std::string  path)
inline

◆ set_host() [1/2]

void DbInterface::set_host ( std::string  host)
inline

◆ set_host() [2/2]

void DbInterface::set_host ( std::string  host)
inline

◆ set_passwd() [1/2]

void DbInterface::set_passwd ( std::string  passwd)
inline

◆ set_passwd() [2/2]

void DbInterface::set_passwd ( std::string  passwd)
inline

◆ set_reuse_connection() [1/2]

void DbInterface::set_reuse_connection ( bool  flag)
inline

◆ set_reuse_connection() [2/2]

void DbInterface::set_reuse_connection ( bool  flag)
inline

◆ set_user() [1/2]

void DbInterface::set_user ( std::string  user)
inline

◆ set_user() [2/2]

void DbInterface::set_user ( std::string  user)
inline

Member Data Documentation

◆ m_dbHost

◆ m_dbName

◆ m_dbPasswd

◆ m_dbPath

std::string DbInterface::m_dbPath
protected

◆ m_dbUser

◆ m_isConnected

◆ m_reuseConnection


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