summaryrefslogtreecommitdiff
path: root/libodbcpp/timetypepair.h
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2010-05-02 12:44:03 +0000
committerrandomdan <randomdan@localhost>2010-05-02 12:44:03 +0000
commitc3da11f658e572d19ad00d6c5e6ff8ecb884bf66 (patch)
treec7035bcc0741ce7472ec6dbb56b4dc93913ee5af /libodbcpp/timetypepair.h
parentAdd a writeToBuf function and use it (diff)
downloadlibdbpp-odbc-c3da11f658e572d19ad00d6c5e6ff8ecb884bf66.tar.bz2
libdbpp-odbc-c3da11f658e572d19ad00d6c5e6ff8ecb884bf66.tar.xz
libdbpp-odbc-c3da11f658e572d19ad00d6c5e6ff8ecb884bf66.zip
Ditch crazy timetypepair and just use an ODBC struct
Diffstat (limited to 'libodbcpp/timetypepair.h')
-rw-r--r--libodbcpp/timetypepair.h30
1 files changed, 0 insertions, 30 deletions
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 <time.h>
-#include <sql.h>
-
-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
-