dballe::Cursor Class Reference

#include <db.h>


Detailed Description

Iterate through the results of a database query.

Public Member Functions

 Cursor (const Cursor &cur)
 auto_ptr-like copy semantics
Cursoroperator= (const Cursor &cur)
 auto_ptr-like copy semantics
 Cursor (dba_db_cursor cur)
 Wraps an existing dba_db_cursor, taking charge of memory allocation.
int remaining () const
 Get the number of remaining results to be fetched.
dba_varcode varcode () const
 Get the varcode of the last data fetched, when applicable.
int contextID () const
 Get the context id of the last data fetched, when applicable.
bool next (Record &rec)
 Fetch the next result into a record.
int attributes (Record &res)
 Query the attributes for the variable currently referenced by the cursor.
int attributes (const std::vector< dba_varcode > &wanted, Record &res)
 Query the attributes for the variable currently referenced by the cursor.

Member Function Documentation

bool dballe::Cursor::next ( Record rec  ) 

Fetch the next result into a record.

Returns:
false when there is no more data to read.


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

Generated on Fri Aug 1 15:23:03 2008 for dballe++ by  doxygen 1.5.6