00001
00002 #ifndef RDBMODEL_MYSQLRESULTS_H
00003 #define RDBMODEL_MYSQLRESULTS_H
00004
00005 #include "rdbModel/Db/ResultHandle.h"
00006
00007 typedef struct st_mysql_res MYSQL_RES;
00008
00009 namespace rdbModel{
00010
00011 class MysqlConnection;
00012
00016 class MysqlResults : virtual public ResultHandle {
00017 friend class MysqlConnection;
00018
00019 public:
00020 virtual ~MysqlResults();
00021
00023 virtual unsigned int getNRows() const;
00024
00028 virtual bool getRow(std::vector<std::string>& fields, unsigned int i = 0,
00029 bool clear = true);
00030
00039 virtual bool getRowPtrs(std::vector<std::string*>& fieldPtrs,
00040 unsigned int i = 0, bool clear=true);
00041
00042 virtual bool getRowCon(char* par,unsigned long* treesize,unsigned int *runFrm,
00043 unsigned int *runTo,unsigned int i = 0, bool clear=true);
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060 private:
00061
00062 MysqlResults(MYSQL_RES* results = 0);
00063
00064 MYSQL_RES* m_myres;
00065 };
00066 }
00067 #endif