summaryrefslogtreecommitdiff
path: root/libodbcpp/bind.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/bind.h
downloadlibdbpp-odbc-2a1fa15d8baa4eda37e17b2e9362f8bde17a939d.tar.bz2
libdbpp-odbc-2a1fa15d8baa4eda37e17b2e9362f8bde17a939d.tar.xz
libdbpp-odbc-2a1fa15d8baa4eda37e17b2e9362f8bde17a939d.zip
libcodbcpp initial release
Diffstat (limited to 'libodbcpp/bind.h')
-rw-r--r--libodbcpp/bind.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/libodbcpp/bind.h b/libodbcpp/bind.h
new file mode 100644
index 0000000..36c7584
--- /dev/null
+++ b/libodbcpp/bind.h
@@ -0,0 +1,29 @@
+#ifndef ODBC_BIND_H
+#define ODBC_BIND_H
+
+#include <sql.h>
+
+namespace ODBC {
+ class BindBase {
+ public:
+ BindBase();
+ virtual ~BindBase() {}
+ SQLINTEGER length() const;
+ SQLUINTEGER size() const;
+ bool isNull() const;
+ private:
+ SQLUINTEGER bindSize; // Allocated memory
+ SQLINTEGER bindLen; // Used memory
+ friend class Param;
+ friend class Column;
+ };
+ template <class t>
+ class Bind {
+ public:
+ virtual ~Bind() {}
+ t value;
+ };
+}
+
+#endif
+