00001
00002 #if !defined(__INC_MODRESULTSET_H)
00003 #define __INC_MODRESULTSET_H
00004
00005 #include "glib.h"
00006
00007 #include "gql++/result-set.h"
00008
00009 namespace GQL
00010 {
00011
00012 class ModResultSet : public ResultSet
00013 {
00014 public:
00015 ModResultSet(int cols, int rows = 0);
00016 virtual ~ModResultSet();
00017
00018 virtual bool next() throw(SQLException);
00019
00020 virtual void get(int i, SQLObject *obj) const throw(SQLException);
00021 virtual ResultSetMetaData *get_meta_data() { return(0); }
00022
00023 void append(const string **tuple);
00024 private:
00025 int cols_;
00026 int rowno_;
00027 vector<string **> rows_;
00028 };
00029
00030 }
00031
00032 #endif