From 2a1fa15d8baa4eda37e17b2e9362f8bde17a939d Mon Sep 17 00:00:00 2001 From: randomdan Date: Sat, 8 Jul 2006 16:32:05 +0000 Subject: libcodbcpp initial release --- libodbcpp/bind.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 libodbcpp/bind.h (limited to 'libodbcpp/bind.h') 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 + +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 Bind { + public: + virtual ~Bind() {} + t value; + }; +} + +#endif + -- cgit v1.2.3