Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

DbInterface Class Reference

#include <DbInterface.h>

Inheritance diagram for DbInterface:

MysqlInterface MysqlInterface SqliteInterface SqliteInterface List of all members.

Public Member Functions

virtual int connect ()=0
virtual int connect ()=0
 DbInterface ()
 DbInterface ()
virtual int disconnect ()=0
virtual int disconnect ()=0
bool is_connected ()
bool is_connected ()
virtual int query (std::string dbname, std::string query)=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 query (std::string dbname, std::string query, DatabaseRecordVector &records)=0
virtual int select_db (std::string dbname)=0
virtual int select_db (std::string dbname)=0
void set_dbpath (std::string path)
void set_dbpath (std::string path)
void set_host (std::string host)
void set_host (std::string host)
void set_passwd (std::string passwd)
void set_passwd (std::string passwd)
void set_reuse_connection (bool flag)
void set_reuse_connection (bool flag)
void set_user (std::string user)
void set_user (std::string user)
virtual ~DbInterface ()
virtual ~DbInterface ()

Protected Attributes

std::string m_dbHost
std::string m_dbName
std::string m_dbPasswd
std::string m_dbPath
std::string m_dbUser
bool m_isConnected
bool m_reuseConnection

Constructor & Destructor Documentation

DbInterface::DbInterface  ) 
 

00004 {
00005   m_isConnected = false;
00006   m_reuseConnection = false;
00007   m_dbName="offlinedb";
00008 }

DbInterface::~DbInterface  )  [virtual]
 

00011 {
00012 }

DbInterface::DbInterface  ) 
 

virtual DbInterface::~DbInterface  )  [virtual]
 


Member Function Documentation

virtual int DbInterface::connect  )  [pure virtual]
 

Implemented in MysqlInterface, SqliteInterface, MysqlInterface, and SqliteInterface.

virtual int DbInterface::connect  )  [pure virtual]
 

Implemented in MysqlInterface, SqliteInterface, MysqlInterface, and SqliteInterface.

virtual int DbInterface::disconnect  )  [pure virtual]
 

Implemented in MysqlInterface, SqliteInterface, MysqlInterface, and SqliteInterface.

virtual int DbInterface::disconnect  )  [pure virtual]
 

Implemented in MysqlInterface, SqliteInterface, MysqlInterface, and SqliteInterface.

bool DbInterface::is_connected  )  [inline]
 

00027 { return m_isConnected; }  

bool DbInterface::is_connected  )  [inline]
 

00027 { return m_isConnected; }  

virtual int DbInterface::query std::string  dbname,
std::string  query
[pure virtual]
 

Implemented in MysqlInterface, SqliteInterface, MysqlInterface, and SqliteInterface.

virtual int DbInterface::query std::string  dbname,
std::string  query,
DatabaseRecordVector records
[pure virtual]
 

Implemented in MysqlInterface, SqliteInterface, MysqlInterface, and SqliteInterface.

virtual int DbInterface::query std::string  dbname,
std::string  query
[pure virtual]
 

Implemented in MysqlInterface, SqliteInterface, MysqlInterface, and SqliteInterface.

virtual int DbInterface::query std::string  dbname,
std::string  query,
DatabaseRecordVector records
[pure virtual]
 

Implemented in MysqlInterface, SqliteInterface, MysqlInterface, and SqliteInterface.

virtual int DbInterface::select_db std::string  dbname  )  [pure virtual]
 

Implemented in MysqlInterface, SqliteInterface, MysqlInterface, and SqliteInterface.

virtual int DbInterface::select_db std::string  dbname  )  [pure virtual]
 

Implemented in MysqlInterface, SqliteInterface, MysqlInterface, and SqliteInterface.

void DbInterface::set_dbpath std::string  path  )  [inline]
 

00032 {m_dbPath=path;};

void DbInterface::set_dbpath std::string  path  )  [inline]
 

00032 {m_dbPath=path;};

void DbInterface::set_host std::string  host  )  [inline]
 

00029 {m_dbHost=host;};

void DbInterface::set_host std::string  host  )  [inline]
 

00029 {m_dbHost=host;};

void DbInterface::set_passwd std::string  passwd  )  [inline]
 

00031 {m_dbPasswd=passwd;};

void DbInterface::set_passwd std::string  passwd  )  [inline]
 

00031 {m_dbPasswd=passwd;};

void DbInterface::set_reuse_connection bool  flag  )  [inline]
 

00033 { m_reuseConnection=flag;};

void DbInterface::set_reuse_connection bool  flag  )  [inline]
 

00033 { m_reuseConnection=flag;};

void DbInterface::set_user std::string  user  )  [inline]
 

00030 {m_dbUser=user;};

void DbInterface::set_user std::string  user  )  [inline]
 

00030 {m_dbUser=user;};


Member Data Documentation

std::string DbInterface::m_dbHost [protected]
 

std::string DbInterface::m_dbName [protected]
 

std::string DbInterface::m_dbPasswd [protected]
 

std::string DbInterface::m_dbPath [protected]
 

std::string DbInterface::m_dbUser [protected]
 

bool DbInterface::m_isConnected [protected]
 

bool DbInterface::m_reuseConnection [protected]
 


The documentation for this class was generated from the following files:
Generated on Wed Feb 2 15:56:42 2011 for BOSS6.5.5 by  doxygen 1.3.9.1