summaryrefslogtreecommitdiff
path: root/libodbcpp/param.h
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2006-07-08 16:32:05 +0000
committerrandomdan <randomdan@localhost>2006-07-08 16:32:05 +0000
commit2a1fa15d8baa4eda37e17b2e9362f8bde17a939d (patch)
tree09386e52320b7c52a521ab56fc7553896e639dcd /libodbcpp/param.h
downloadlibdbpp-odbc-2a1fa15d8baa4eda37e17b2e9362f8bde17a939d.tar.bz2
libdbpp-odbc-2a1fa15d8baa4eda37e17b2e9362f8bde17a939d.tar.xz
libdbpp-odbc-2a1fa15d8baa4eda37e17b2e9362f8bde17a939d.zip
libcodbcpp initial release
Diffstat (limited to 'libodbcpp/param.h')
-rw-r--r--libodbcpp/param.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/libodbcpp/param.h b/libodbcpp/param.h
new file mode 100644
index 0000000..a3cb347
--- /dev/null
+++ b/libodbcpp/param.h
@@ -0,0 +1,30 @@
+#ifndef ODBC_PARAM_H
+#define ODBC_PARAM_H
+
+#include <malloc.h>
+#include "bind.h"
+
+namespace ODBC {
+ template <class> class _Param;
+ class Param : public BindBase {
+ public:
+ Param();
+ virtual ~Param();
+ bool bound; // Has SqlBind... been called?
+ void bind(SQLHANDLE, SQLUINTEGER, SQLSMALLINT, SQLSMALLINT, SQLINTEGER,
+ SQLINTEGER, const void*, size_t);
+ template <class T>
+ void makeBindLen(T*&, size_t newSize);
+ template <class t>
+ static ODBC::_Param<t>*
+ makeParam(ODBC::Param*& p);
+ };
+ template <class t>
+ class _Param : public Bind<t>, public Param {
+ public:
+ ~_Param() {}
+ };
+}
+
+#endif
+