/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Calibration/rdbModel/rdbModel-00-01-01/rdbModel/Db/MysqlResults.h

Go to the documentation of this file.
00001 // $Header: /bes/bes/BossCvs/Calibration/rdbModel/rdbModel/Db/MysqlResults.h,v 1.2 2008/04/09 02:57:28 huangb Exp $
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     // Return specified row in results as a string
00046     virtual bool getRowString(std::string& row, unsigned int iRow=0) const;
00047 
00048       Return vector of rows
00049          @param rows     to hold returned data
00050          @param iRow     starting row
00051          @param maxRow   maximum number of rows requested.  0 means "all"
00052          @param clear    if true, clear @a rows before storing new data
00053          @return         status
00054     
00055     virtual bool getRowStrings(std::vector<std::string>& rows, 
00056                                unsigned int iRow=0,
00057                                unsigned int maxRow=0, bool clear=true) const;
00058     */
00059 
00060   private:
00061     // Only MysqlConnection calls constructor
00062     MysqlResults(MYSQL_RES* results = 0); 
00063 
00064     MYSQL_RES* m_myres;
00065   };
00066 }
00067 #endif

Generated on Tue Nov 29 22:57:56 2016 for BOSS_7.0.2 by  doxygen 1.4.7