diff options
Diffstat (limited to 'odb/mysql/result.hxx')
-rw-r--r-- | odb/mysql/result.hxx | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/odb/mysql/result.hxx b/odb/mysql/result.hxx new file mode 100644 index 0000000..d852bc6 --- /dev/null +++ b/odb/mysql/result.hxx @@ -0,0 +1,51 @@ +// file : odb/mysql/result.hxx +// author : Boris Kolpackov <boris@codesynthesis.com> +// copyright : Copyright (c) 2009-2010 Code Synthesis Tools CC +// license : GNU GPL v2; see accompanying LICENSE file + +#ifndef ODB_MYSQL_RESULT_HXX +#define ODB_MYSQL_RESULT_HXX + +#include <odb/result.hxx> +#include <odb/shared-ptr.hxx> + +#include <odb/mysql/version.hxx> +#include <odb/mysql/forward.hxx> +#include <odb/mysql/statement.hxx> + +namespace odb +{ + namespace mysql + { + template <typename T> + class result_impl: public odb::result_impl<T> + { + public: + typedef object_traits<T> traits; + typedef typename traits::pointer_type pointer_type; + typedef typename traits::pointer_ops pointer_ops; + + virtual + ~result_impl (); + + result_impl (shared_ptr<query_statement> statement, + object_statements<T>& statements); + + pointer_type + current (bool release); + + void + next (); + + private: + pointer_type cur_; + shared_ptr<query_statement> statement_; + object_statements<T>& statements_; + query_statement::result state_; + }; + } +} + +#include <odb/mysql/result.txx> + +#endif // ODB_MYSQL_RESULT_HXX |