From 881033464c13398f78be306d8d785616f0947896 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 24 Feb 2019 15:29:12 +0000 Subject: Bring inline with clang-tidy checks --- libodbcpp/odbc-param_fwd.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 libodbcpp/odbc-param_fwd.h (limited to 'libodbcpp/odbc-param_fwd.h') diff --git a/libodbcpp/odbc-param_fwd.h b/libodbcpp/odbc-param_fwd.h new file mode 100644 index 0000000..88c3dae --- /dev/null +++ b/libodbcpp/odbc-param_fwd.h @@ -0,0 +1,29 @@ +#ifndef ODBC_PARAM_FWD_H +#define ODBC_PARAM_FWD_H + +#include +#include "odbc-bind.h" + +namespace ODBC { + class Command; + class Param : public virtual Bind { + public: + Param(); + Param(Command *, unsigned int idx); + void bind() const; + + virtual SQLSMALLINT stype() const = 0; // The SQL type ID + virtual SQLINTEGER dp() const = 0; // The decimal place count + virtual const void * dataAddress() const = 0; // The address of the data + + protected: + friend class Column; + mutable Command * paramCmd; + mutable unsigned int paramIdx; + mutable bool paramBound; // Has SqlBind(...) been called since last change of address? + SQLLEN dataLength; + }; +} + +#endif + -- cgit v1.2.3