SqlRow Class Reference

A row in the result set. Note: You shouldn't use this class directly, but instead program against the SqlResult interface. More...

#include <sqlresult.hpp>

List of all members.

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.


Detailed Description

A row in the result set. Note: You shouldn't use this class directly, but instead program against the SqlResult interface.

Definition at line 40 of file sqlresult.hpp.


Constructor & Destructor Documentation

SqlRow::SqlRow ( const int  columns = 0  ) 

Constructor.

Create a row of results.

Parameters:
columns The number of columns/fields the row has.

Definition at line 31 of file sqlresult.cpp.

SqlRow::~SqlRow (  ) 

Destructor.

Definition at line 37 of file sqlresult.cpp.


Member Function Documentation

int SqlRow::columns (  )  const

Find out how many columns this row has.

Returns:
The number of columns.

Definition at line 42 of file sqlresult.cpp.

void SqlRow::add ( const string &  field  ) 

Add a field of data to the row.

Parameters:
field The datafield as a STL string.

string SqlRow::fetch (  ) 

Get the next field in the row.

Returns:
The field as a STL string.

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.

Returns:
true/false.

Definition at line 69 of file sqlresult.cpp.

Referenced by SqlResult::fetch(), and fetch().


The documentation for this class was generated from the following files:
Generated on Sat Aug 18 16:21:45 2007 for SqlWrapperXX by  doxygen 1.5.0