summaryrefslogtreecommitdiff
path: root/libodbcpp/column.h
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2010-04-07 19:25:52 +0000
committerrandomdan <randomdan@localhost>2010-04-07 19:25:52 +0000
commitde6be7bbb9a2984a514d4076d77d97b054585d7c (patch)
tree29091246152281e91e86f78d975854eb8f5d5e8a /libodbcpp/column.h
parentMinor fixes (diff)
downloadlibdbpp-odbc-de6be7bbb9a2984a514d4076d77d97b054585d7c.tar.bz2
libdbpp-odbc-de6be7bbb9a2984a514d4076d77d97b054585d7c.tar.xz
libdbpp-odbc-de6be7bbb9a2984a514d4076d77d97b054585d7c.zip
Add a writeToBuf function and use it
Diffstat (limited to 'libodbcpp/column.h')
-rw-r--r--libodbcpp/column.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libodbcpp/column.h b/libodbcpp/column.h
index acc6904..616ca2d 100644
--- a/libodbcpp/column.h
+++ b/libodbcpp/column.h
@@ -22,6 +22,8 @@ namespace ODBC {
operator String () const;
operator const struct tm & () const;
virtual void rebind(Command *, unsigned int col) const = 0;
+ virtual int writeToBuf(char ** buf) const = 0;
+ virtual int writeToBuf(char ** buf, const char * fmt) const = 0;
const unsigned int colNo;
const String name;
@@ -35,6 +37,8 @@ namespace ODBC {
_Column(String, unsigned int);
~_Column() {}
void rebind(Command *, unsigned int col) const;
+ int writeToBuf(char ** buf) const;
+ int writeToBuf(char ** buf, const char * fmt) const;
};
}