Result.h

Go to the documentation of this file.
00001 #ifndef RESULT_H
00002 #define RESULT_H
00003 
00004 #include "cadbc.h"
00005 
00006 using namespace std;
00007 
00010 class Result {
00011         public: 
00012                 Result(cadbc &theDB) : db(&theDB) {}
00013                 void execQuery(const string &query);
00014                 string getvalue(int row, int col) { return data[row][col]; }
00015                 int nfields() const { return data[0].size(); }
00016                 int ntuples() const { return data.size(); }
00017                 //string fieldName(int i) { return db->fieldName(i); }
00018                 string getFieldType(int i) { return fieldType[i]; }
00019 
00020         private:
00021                 cadbc *db;
00022                 vector<vector<string> > data;
00023                 vector<string> fieldType;
00024 };
00025 
00026 #endif

Generated on Wed Aug 10 11:56:49 2011 for Softwares from Orpara by  doxygen 1.5.6