Belle II Software  release-08-01-10
DBInterface Class Referenceabstract
Inheritance diagram for DBInterface:
Collaboration diagram for DBInterface:

Public Member Functions

 DBInterface (const std::string &host, const std::string &database, const std::string &user, const std::string &password, int port)
 
virtual void connect ()=0
 
virtual bool isConnected ()=0
 
virtual void execute_imp (const char *command)=0
 
void execute (const char *command,...)
 
void execute (const std::string &command)
 
virtual void close ()=0
 
virtual void clear ()=0
 
virtual DBRecordList loadRecords ()=0
 
virtual bool checkTable (const std::string &tablename)=0
 
virtual DBFieldTypeList getTableContents (const std::string &tablename)=0
 
void clearRecords ()
 
DBRecordList & getRecords ()
 
const std::string & getHostName () const
 
const std::string & getDatabase () const
 
const std::string & getUserName () const
 
const std::string & getPassword () const
 
int getPort () const
 

Protected Member Functions

void init (const std::string &host, const std::string &database, const std::string &user, const std::string &password, int port)
 

Protected Attributes

DBRecordList m_record_v
 
std::string m_host
 
std::string m_database
 
std::string m_user
 
std::string m_password
 
int m_port
 

Private Attributes

Mutex m_mutex
 
char * m_buf
 

Static Private Attributes

static const int m_buf_size = 1024 * 1000
 

Detailed Description

Definition at line 26 of file DBInterface.h.


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