src/Common/ODBC/Parameters.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 ODBCParameters
00011                         {
00012                         private:
00014                                 std::vector<ODBCParameter> _parameters;
00016                 ODBCParameters& operator=(const ODBCParameters& value) { };
00017                         public:
00019                 unsigned int GetParameterCount() const { return _parameters.size(); }
00021                                 const ODBCParameter& operator[](const std::wstring& name) const;
00023                 const ODBCParameter& operator[](int index) const;
00025                                 void AddParameter(const ODBCParameter& p);
00027                                 void Bind(SQLHSTMT stmt);
00028                                 ODBCParameters();
00029                                 virtual ~ODBCParameters();
00030                         };
00031                 }
00032         }
00033 }


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