#ifndef ODBC_COLUMN_H #define ODBC_COLUMN_H #include "string.h" #include "bind.h" namespace ODBC { class Column : public BindBase { public: Column(String, u_int); virtual ~Column(); void bind(SQLHANDLE, SQLUINTEGER, SQLSMALLINT, void*, size_t); operator int () const; operator unsigned int () const; operator long long () const; operator unsigned long long () const; operator double () const; operator float () const; operator const unsigned char * const () const; operator const char * const () const; operator std::string () const; operator String () const; operator const struct tm & () const; const u_int colNo; const String name; private: mutable bool fresh; friend class SelectCommand; }; template class _Column : public Bind, public Column { public: _Column(String, u_int); ~_Column() {} }; } #endif