#include <sqlresult.hpp>
Public Member Functions | |
| SqlRow (const int columns=0) | |
| Constructor. | |
| ~SqlRow () | |
| Destructor. | |
| int | columns () const |
| Find out how many columns this row has. | |
| void | add (const string &field) |
| Add a field of data to the row. | |
| string | fetch () |
| Get the next field in the row. | |
| bool | empty () const |
| Find out if the current row is empty. Ie, has no data fields. | |
Definition at line 40 of file sqlresult.hpp.
| SqlRow::SqlRow | ( | const int | columns = 0 |
) |
Constructor.
Create a row of results.
| columns | The number of columns/fields the row has. |
Definition at line 31 of file sqlresult.cpp.
| SqlRow::~SqlRow | ( | ) |
| int SqlRow::columns | ( | ) | const |
Find out how many columns this row has.
Definition at line 42 of file sqlresult.cpp.
| void SqlRow::add | ( | const string & | field | ) |
Add a field of data to the row.
| field | The datafield as a STL string. |
| string SqlRow::fetch | ( | ) |
Get the next field in the row.
Definition at line 52 of file sqlresult.cpp.
References empty().
Referenced by SqlResult::fetch().
| bool SqlRow::empty | ( | ) | const |
Find out if the current row is empty. Ie, has no data fields.
Definition at line 69 of file sqlresult.cpp.
Referenced by SqlResult::fetch(), and fetch().
1.5.0