From c3da11f658e572d19ad00d6c5e6ff8ecb884bf66 Mon Sep 17 00:00:00 2001 From: randomdan Date: Sun, 2 May 2010 12:44:03 +0000 Subject: Ditch crazy timetypepair and just use an ODBC struct --- libodbcpp/timetypepair.h | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 libodbcpp/timetypepair.h (limited to 'libodbcpp/timetypepair.h') diff --git a/libodbcpp/timetypepair.h b/libodbcpp/timetypepair.h deleted file mode 100644 index af77c0f..0000000 --- a/libodbcpp/timetypepair.h +++ /dev/null @@ -1,30 +0,0 @@ -#ifndef ODBC_TIMETYPEPAIR_H -#define ODBC_TIMETYPEPAIR_H - -#include -#include - -namespace ODBC { - class TimeTypePair { - typedef SQL_TIMESTAMP_STRUCT SQL_TS; - public: - TimeTypePair (); - TimeTypePair (const tm&); - TimeTypePair (const SQL_TS&); - - const SQL_TS& set(const tm&); - const tm& set(const SQL_TS&); - SQL_TS& sql() { return _sql; } - tm& c() { return _c; } - const SQL_TS& sql() const { return _sql; } - const tm& c() const { return _c; } - void sql2c() const; - void c2sql() const; - private: - mutable SQL_TS _sql; - mutable tm _c; - }; -}; - -#endif - -- cgit v1.2.3