DBQueryBase.h 915 B

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