diff options
author | randomdan <randomdan@localhost> | 2010-06-13 15:25:33 +0000 |
---|---|---|
committer | randomdan <randomdan@localhost> | 2010-06-13 15:25:33 +0000 |
commit | 89ddd6821bb7ecb0c29077ea427df0cd86017e38 (patch) | |
tree | 3a370c705e0b84033042dd708426516d088a66ee /libodbcpp/column.h | |
parent | Fix odbc select destructor when cursor not opened (diff) | |
download | libdbpp-odbc-89ddd6821bb7ecb0c29077ea427df0cd86017e38.tar.bz2 libdbpp-odbc-89ddd6821bb7ecb0c29077ea427df0cd86017e38.tar.xz libdbpp-odbc-89ddd6821bb7ecb0c29077ea427df0cd86017e38.zip |
Add support for composing Glib::ustrings from columns
Break Project2 components down into generalised classes
Tidy up code
Diffstat (limited to 'libodbcpp/column.h')
-rw-r--r-- | libodbcpp/column.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libodbcpp/column.h b/libodbcpp/column.h index 9f3b93d..3b3370f 100644 --- a/libodbcpp/column.h +++ b/libodbcpp/column.h @@ -22,6 +22,8 @@ namespace ODBC { operator Glib::ustring () const; operator struct tm () const; virtual void rebind(Command *, unsigned int col) const = 0; + virtual Glib::ustring compose() const = 0; + virtual Glib::ustring compose(const Glib::ustring & fmt) const = 0; virtual int writeToBuf(char ** buf) const = 0; virtual int writeToBuf(char ** buf, const char * fmt) const = 0; bool isNull() const; @@ -38,6 +40,8 @@ namespace ODBC { _Column(const Glib::ustring &, unsigned int); ~_Column() {} void rebind(Command *, unsigned int col) const; + Glib::ustring compose() const; + Glib::ustring compose(const Glib::ustring & fmt) const; int writeToBuf(char ** buf) const; int writeToBuf(char ** buf, const char * fmt) const; }; |