summaryrefslogtreecommitdiff
path: root/libodbcpp/bind.h
blob: 36c7584fb0ed15032c2b0bcb28acb8a73ba16cd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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