#pragma once #include "stdafx.h" namespace OTSSQLITE { class __declspec(dllexport) CDBQueryBase { public: virtual int GetColCount() = 0; virtual CString GetColName(const int a_nColIndex) = 0; virtual int GetColType(const int a_nColIndex) = 0; virtual CString GetColValue(const int a_nColIndex) = 0; virtual int GetColIntValue(const int a_nColIndex, const int a_nNullValue = 0) = 0; virtual double GetColFloatValue(const int a_nColIndex, const double a_dNullValue = 0.0) = 0; virtual CString GetColStringValue(const int a_nColIndex, LPCTSTR a_sNullValue = _T("")) = 0; virtual const unsigned char* GetColBlobValue(const int a_nColIndex, int& a_nLen) = 0; virtual BOOL IsColNull(const int a_nColIndex) = 0; virtual BOOL IsValid() = 0; virtual BOOL IsEOF() = 0; virtual BOOL NextRow() = 0; virtual void Close() = 0; }; typedef std::shared_ptr __declspec(dllexport) CDBQueryBasePtr; }