123456789101112131415161718192021222324252627282930313233343536373839404142 |
- #pragma once
- #include "DBQueryBase.h"
- #include "CppSQLite3U.h"
- #include <afxstr.h>
- #include <wtypes.h>
- namespace OTSSQLITE
- {
- class CSQLiteQuery : public CDBQueryBase
- {
- public:
- CSQLiteQuery(CppSQLite3QueryPtr a_query);
- virtual ~CSQLiteQuery();
-
- virtual int GetColCount() override;
- virtual int GetColType(const int a_nColIndex) override;
- virtual CString GetColName(const int a_nColIndex) override;
- virtual CString GetColValue(const int a_nColIndex) override;
- virtual int GetColIntValue(const int a_nColIndex, const int a_nNullValue = 0) override;
- virtual double GetColFloatValue(const int a_nColIndex, const double a_dNullValue = 0.0) override;
- virtual CString GetColStringValue(const int a_nColIndex, LPCTSTR a_sNullValue = _T("")) override;
- virtual const unsigned char* GetColBlobValue(const int a_nColIndex, int& a_nLen) override;
- virtual BOOL IsColNull(const int a_nColIndex) override;
- virtual BOOL IsValid() override;
- virtual BOOL IsEOF() override;
- virtual BOOL NextRow() override;
- virtual void Close() override;
- ///////////////////////////////////////////////////////////////////
- protected:
- CppSQLite3QueryPtr m_query;
- };
- }
|