Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

MySQL_Result Class Reference

#include <boss_mysql_result.h>

List of all members.

Public Member Functions

 MySQL_Result ()
 MySQL_Result (MySQL_Handler *b, MYSQL_RES *r) throw (MySQL_QueryFailed)
 MySQL_Result (const MySQL_Result &r)
 ~MySQL_Result ()
MySQL_Resultoperator= (const MySQL_Result &r)
string operator() (const unsigned &row, const unsigned &col) const throw (MySQL_QueryFailed, MySQL_IndexOutOfRange)
string operator() (const unsigned &row, const string &col) const throw (MySQL_QueryFailed)
unsigned col () const
unsigned row () const
bool valid () const

Private Attributes

MySQL_Handlerbase
MYSQL_RES * result
MySQL_FieldMap field_map

Friends

ostream & operator<< (ostream &out, const MySQL_Result &r)


Detailed Description

Author:
Karlheinz Stoeber This class handles a result set which was returned by the mysql_real_query call. To avoid copy operations of the whole data returned by the query, this class uses only pointers to the data set. The data management is implemented in the handler class. Therefore, a map is used which stores a pointer to the data as key and a list of pointers to instances of this class as item. As long as instances of this class are connected to the data, the data memory will not be free. As a consequence, this class gives only read-only access to the result set.


Constructor & Destructor Documentation

MySQL_Result::MySQL_Result  )  [inline]
 

MySQL_Result::MySQL_Result MySQL_Handler b,
MYSQL_RES *  r
throw (MySQL_QueryFailed)
 

MySQL_Result::MySQL_Result const MySQL_Result r  ) 
 

MySQL_Result::~MySQL_Result  ) 
 


Member Function Documentation

unsigned MySQL_Result::col  )  const [inline]
 

string MySQL_Result::operator() const unsigned &  row,
const string &  col
const throw (MySQL_QueryFailed)
 

string MySQL_Result::operator() const unsigned &  row,
const unsigned &  col
const throw (MySQL_QueryFailed, MySQL_IndexOutOfRange)
 

MySQL_Result & MySQL_Result::operator= const MySQL_Result r  ) 
 

unsigned MySQL_Result::row  )  const [inline]
 

bool MySQL_Result::valid  )  const [inline]
 


Friends And Related Function Documentation

ostream& operator<< ostream &  out,
const MySQL_Result r
[friend]
 


Member Data Documentation

MySQL_Handler* MySQL_Result::base [private]
 

MySQL_FieldMap MySQL_Result::field_map [private]
 

MYSQL_RES* MySQL_Result::result [private]
 


The documentation for this class was generated from the following files:
Generated on Tue Dec 20 23:14:40 2005 for BOSS by doxygen 1.3.6