SQLiteQuery.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #pragma once
  2. #include "DBQueryBase.h"
  3. #include "CppSQLite3U.h"
  4. #include <afxstr.h>
  5. #include <wtypes.h>
  6. namespace OTSSQLITE
  7. {
  8. class CSQLiteQuery : public CDBQueryBase
  9. {
  10. public:
  11. CSQLiteQuery(CppSQLite3QueryPtr a_query);
  12. virtual ~CSQLiteQuery();
  13. virtual int GetColCount() override;
  14. virtual int GetColType(const int a_nColIndex) override;
  15. virtual CString GetColName(const int a_nColIndex) override;
  16. virtual CString GetColValue(const int a_nColIndex) override;
  17. virtual int GetColIntValue(const int a_nColIndex, const int a_nNullValue = 0) override;
  18. virtual double GetColFloatValue(const int a_nColIndex, const double a_dNullValue = 0.0) override;
  19. virtual CString GetColStringValue(const int a_nColIndex, LPCTSTR a_sNullValue = _T("")) override;
  20. virtual const unsigned char* GetColBlobValue(const int a_nColIndex, int& a_nLen) override;
  21. virtual BOOL IsColNull(const int a_nColIndex) override;
  22. virtual BOOL IsValid() override;
  23. virtual BOOL IsEOF() override;
  24. virtual BOOL NextRow() override;
  25. virtual void Close() override;
  26. ///////////////////////////////////////////////////////////////////
  27. protected:
  28. CppSQLite3QueryPtr m_query;
  29. };
  30. }