Parameters.h
Go to the documentation of this file.
1 #pragma once
2 
3 namespace AppSecInc
4 {
5  namespace Databases
6  {
7  namespace ODBC
8  {
11  {
12  private:
14  std::vector<ODBCParameter> _parameters;
16  ODBCParameters& operator=(const ODBCParameters& value) { };
17  public:
19  unsigned int GetParameterCount() const { return _parameters.size(); }
21  const ODBCParameter& operator[](const std::wstring& name) const;
23  const ODBCParameter& operator[](int index) const;
25  void AddParameter(const ODBCParameter& p);
27  void Bind(SQLHSTMT stmt);
29  virtual ~ODBCParameters();
30  };
31  }
32  }
33 }
const ODBCParameter & operator[](const std::wstring &name) const
get a parameter by name
Definition: Parameters.cpp:21
void AddParameter(const ODBCParameter &p)
add a named parameter
Definition: Parameters.cpp:16
unsigned int GetParameterCount() const
get the number of parameters
Definition: Parameters.h:19
ODBCParameters()
Definition: Parameters.cpp:6
An ODBC column.
Definition: Parameter.h:10
virtual ~ODBCParameters()
Definition: Parameters.cpp:11
An ODBC parameters.
Definition: Parameters.h:10
void Bind(SQLHSTMT stmt)
bind the parameters to a connection
Definition: Parameters.cpp:37


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