Main Page | Class Hierarchy | Class List | Directories | File List | Class Members

DbResultSet.h

00001 /* hey emacs! -*- Mode: C++; c-file-style: "stroustrup"; indent-tabs-mode: nil -*- */
00002 /*
00003  * DbResultSet.h
00004  *   description goes here
00005  *
00006  * $Id: DbResultSet.h,v 1.4 2000/12/27 16:59:27 rex Exp $
00007  *
00008  * Copyright (c) 2000 Benoit Joly <benoit@ddts.org>
00009  *                and Remi Lefebvre <remi@dhis.net>
00010  *                and Luca Filipozzi <lfilipoz@dhis.net>
00011  *
00012  * DDT comes with ABSOLUTELY NO WARRANTY and is licenced under the
00013  * GNU General Public License (version 2 or later). This license
00014  * can be retrieved from http://www.gnu.org/copyleft/gnu.html.
00015  *
00016  */
00017 
00018 #ifndef __RESULTSET_H__
00019 #define __RESULTSET_H__
00020 
00021 #include "DbMetaData.h"
00022 #include <vector>
00023 #include <string>
00024 
00025 class DbResultSet
00026 {
00027   public:
00028     DbResultSet();
00029     virtual ~DbResultSet();
00030     int getRowCount();
00031 
00032     // iterator methods
00033     bool next();
00034     bool prev();
00035     bool first();
00036     bool beforeFirst();
00037     bool last();
00038     bool afterLast();
00039     
00040     // retreiving information methods
00041     const char *getString(int pos);
00042     // int getInt(int pos);
00043     // long getLong(int pos);
00044     
00045 //    const DbMetaData *getMetaData();
00046 
00047   protected:
00048     int currentRow;
00049     vector < vector<string> > rows;
00050 //    DbMetaData *metaData;
00051 };
00052 
00053 #endif

Generated on Tue Sep 13 01:32:46 2005 for DDT Project by  doxygen 1.4.4