00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
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
00033 bool next();
00034 bool prev();
00035 bool first();
00036 bool beforeFirst();
00037 bool last();
00038 bool afterLast();
00039
00040
00041 const char *getString(int pos);
00042
00043
00044
00045
00046
00047 protected:
00048 int currentRow;
00049 vector < vector<string> > rows;
00050
00051 };
00052
00053 #endif