diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-08-10 11:16:42 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-08-10 11:16:42 +0200 |
commit | ec6b9f59d40b2c389496f8e6af6bce64944af998 (patch) | |
tree | b042d94161432c66336972471a82dcdca9cb3eea /odb/query.hxx | |
parent | 3d1ccd52f417c6e5e333e4f48130b043106215ad (diff) |
Add query support
Diffstat (limited to 'odb/query.hxx')
-rw-r--r-- | odb/query.hxx | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/odb/query.hxx b/odb/query.hxx new file mode 100644 index 0000000..d52e1cc --- /dev/null +++ b/odb/query.hxx @@ -0,0 +1,38 @@ +// file : odb/query.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_QUERY_HXX +#define ODB_QUERY_HXX + +#include <string> + +#include <odb/forward.hxx> +#include <odb/traits.hxx> + +namespace odb +{ + template <typename T> + class query: public object_traits<T>::query_type + { + public: + typedef typename object_traits<T>::query_type base_type; + + query () + { + } + + query (const std::string& q) + : base_type (q) + { + } + + query (const base_type& q) + : base_type (q) + { + } + }; +} + +#endif // ODB_QUERY_HXX |