RcuDb::Result Class Reference
[Database classes]

#include <rcudb/Result.h>

Inheritance diagram for RcuDb::Result:

Inheritance graph
[legend]

Detailed Description

Result set.

Examples:

testDB.cxx.

Definition at line 38 of file Result.h.

Public Member Functions

virtual ~Result ()
virtual void Close ()=0
virtual int NFields ()=0
virtual const char * FieldName (int i)=0
virtual int NRows () const
virtual RowNext ()=0
virtual void Print ()

Protected Member Functions

 Result ()

Protected Attributes

int fNRows


Constructor & Destructor Documentation

virtual RcuDb::Result::~Result (  )  [inline, virtual]

Destructor.

Reimplemented in RcuDb::Mysql::Result, and RcuDb::Oracle::Result.

Definition at line 42 of file Result.h.

RcuDb::Result::Result (  )  [inline, protected]

Constructor is hidden.

Definition at line 59 of file Result.h.


Member Function Documentation

virtual void RcuDb::Result::Close (  )  [pure virtual]

Close the result.

Implemented in RcuDb::Mysql::Result, and RcuDb::Oracle::Result.

virtual int RcuDb::Result::NFields (  )  [pure virtual]

Get the number of fields in this result set.

Implemented in RcuDb::Mysql::Result, and RcuDb::Oracle::Result.

Referenced by Print().

virtual const char* RcuDb::Result::FieldName ( int  i  )  [pure virtual]

Get the name of the field i.

Implemented in RcuDb::Mysql::Result, and RcuDb::Oracle::Result.

Referenced by Print().

virtual int RcuDb::Result::NRows (  )  const [inline, virtual]

Get the number of rows in this result.

Definition at line 50 of file Result.h.

References fNRows.

Referenced by Print().

virtual Row* RcuDb::Result::Next (  )  [pure virtual]

Get the next row in the result set.

This can be used to iterate over the result set.

Returns:
next row, or 0 if there's no more rows left

Implemented in RcuDb::Mysql::Result, and RcuDb::Oracle::Result.

Referenced by Print().

void RcuDb::Result::Print (  )  [virtual]

Utility function to print result of query.

Examples:
testDB.cxx.

Definition at line 34 of file Result.cxx.

References RcuDb::Row::FieldLen(), FieldName(), Next(), NFields(), and NRows().

Here is the call graph for this function:


Field Documentation

int RcuDb::Result::fNRows [protected]

Number of rows in the result set.

Definition at line 61 of file Result.h.

Referenced by RcuDb::Mysql::Result::Close(), and NRows().


The documentation for this class was generated from the following files:
Top of page Last update Wed Jul 11 16:56:54 2007
Copyright © 2004 Christian Holm Created by DoxyGen 1.5.2