summaryrefslogtreecommitdiff
path: root/libodbcpp/param.h
blob: a3cb34755fdc4ae40e98c039143614682ad91173 (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
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