aboutsummaryrefslogtreecommitdiff
path: root/odb/query.hxx
blob: d52e1cccd70d00979f5e0f4c4d04577438f1d0a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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