My Project
D:/source/c++/Programme/sally/sally/sallyAPI/ResultSet.h
Go to the documentation of this file.
00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 
00023 
00024 
00025 
00026 
00027 
00028 #pragma once
00029 #include "Define.h"
00030 #include <string>
00031 #include <sqlite3.h>
00032 #include "SQLException.h"
00033 #include "ResultSetMetaData.h"
00034 #include "StringHelper.h"
00035 
00036 namespace SallyAPI
00037 {
00038         namespace Database
00039         {
00048 
00049                 class DLL_API_SALLY CResultSet
00050                 {
00051                 private:
00052                         sqlite3_stmt*           m_pStmt;
00053                         CResultSetMetaData*     m_pResultMetaData;
00054                         int                                     m_nRes;
00055                         bool                            m_bSecondStep;
00056                 public:
00057                         CResultSet(sqlite3_stmt *ps);
00058                         ~CResultSet();
00059 
00060                         bool                    Next();
00061                         bool                    IsNull(int colNum);
00062                         std::string             GetString(int colNum);
00063                         int                             GetInt(int colNum);
00064                         long                    GetLong(int colNum);
00065                         unsigned int    GetUInt(int colNum);
00066                         unsigned long   GetULong(int colNum);
00067                         float                   GetFloat(int colNum);
00068                         double                  GetDouble(int colNum);
00069                         bool                    GetBoolean(int colNum);
00070 
00071                         CResultSetMetaData* GetMetaData();
00072                 };
00073         }
00074 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines