src/Common/ODBC/Column.h

Go to the documentation of this file.
00001 #pragma once
00002 
00003 namespace AppSecInc
00004 {
00005         namespace Databases
00006         {
00007                 namespace ODBC
00008                 {
00010             class ODBCColumn : public ODBCBuffer
00011                         {
00012             private:
00014                                 std::wstring _name;
00016                 bool _bound;
00018                 SQLSMALLINT GetBindDataType() const;
00019                         public:
00021                 bool IsBound() const { return _bound; }
00023                 void operator=(const ODBCColumn&);
00025                                 const std::wstring& GetName() const { return _name; }
00027                                 void BindAt(SQLHANDLE hstmt, int index);
00029                 void GetDataAt(SQLHANDLE hstmt, int index);
00030                                 ODBCColumn(const ODBCColumn& column);
00036                 ODBCColumn(const std::wstring& name, SQLSMALLINT type, SQLINTEGER size = ODBCBuffer::INVALID_SIZE);
00037                                 virtual ~ODBCColumn();
00038                         };
00039                 }
00040         }
00041 }
00042 
00043 
00044 


© Application Security Inc. - All Rights Reserved http://msiext.codeplex.com