#include <mysqlResultRow.hpp>

Public Member Functions | |
| MySQLResultRow (MYSQL_ROW _result) | |
| virtual std::string | operator[] (int i) throw (Error) |
| Destructor. | |
| virtual void | invalidate (void) |
Protected Attributes | |
| MYSQL_ROW | result |
Definition at line 28 of file mysqlResultRow.hpp.
| MySQLResultRow::MySQLResultRow | ( | MYSQL_ROW | _result | ) |
Constructor requiring a handle to a result-row. Use MySQLStatement::fetchRow instead of this constructor.
Definition at line 18 of file mysqlResultRow.cpp.
References result.
| std::string MySQLResultRow::operator[] | ( | int | i | ) | throw (Error) [virtual] |
Destructor.
Operator for retrieving columns.
| i | Number of column (starting from 0). |
Implements ResultRow.
Definition at line 24 of file mysqlResultRow.cpp.
References ERRORMACRO, and result.
00025 { 00026 ERRORMACRO( result != NULL, Error, , 00027 "Handle of SQL-data was invalidated. Probably " 00028 "MySQLStatement::~MySQLStatement called before finishing " 00029 "reading out the results." ); 00030 00031 return result[ i ] != NULL ? result[ i ] : ""; 00032 }
| virtual void MySQLResultRow::invalidate | ( | void | ) | [inline, virtual] |
Invalidate the row. This method is called by the destructor of MySQLStatement to prevent the MySQLResultRow object from using invalidated data.
Implements ResultRow.
Definition at line 42 of file mysqlResultRow.hpp.
References result.
00042 { result = NULL; }
MYSQL_ROW MySQLResultRow::result [protected] |
Definition at line 45 of file mysqlResultRow.hpp.
Referenced by invalidate(), MySQLResultRow(), and operator[]().