DBQueryBase.h 935 B

1234567891011121314151617181920212223242526272829303132
  1. #pragma once
  2. #include "stdafx.h"
  3. namespace OTSSQLITE
  4. {
  5. class __declspec(dllexport) CDBQueryBase
  6. {
  7. public:
  8. virtual int GetColCount() = 0;
  9. virtual CString GetColName(const int a_nColIndex) = 0;
  10. virtual int GetColType(const int a_nColIndex) = 0;
  11. virtual CString GetColValue(const int a_nColIndex) = 0;
  12. virtual int GetColIntValue(const int a_nColIndex, const int a_nNullValue = 0) = 0;
  13. virtual double GetColFloatValue(const int a_nColIndex, const double a_dNullValue = 0.0) = 0;
  14. virtual CString GetColStringValue(const int a_nColIndex, LPCTSTR a_sNullValue = _T("")) = 0;
  15. virtual const unsigned char* GetColBlobValue(const int a_nColIndex, int& a_nLen) = 0;
  16. virtual BOOL IsColNull(const int a_nColIndex) = 0;
  17. virtual BOOL IsValid() = 0;
  18. virtual BOOL IsEOF() = 0;
  19. virtual BOOL NextRow() = 0;
  20. virtual void Close() = 0;
  21. };
  22. typedef std::shared_ptr<CDBQueryBase> __declspec(dllexport) CDBQueryBasePtr;
  23. }