Lumiera  0.pre.03
»edit your freedom«
query-text.cpp
Go to the documentation of this file.
1 /*
2  QueryText - syntactical standard representation for queries
3 
4  Copyright (C)
5  2012, Hermann Vosseler <Ichthyostega@web.de>
6 
7   **Lumiera** is free software; you can redistribute it and/or modify it
8   under the terms of the GNU General Public License as published by the
9   Free Software Foundation; either version 2 of the License, or (at your
10   option) any later version. See the file COPYING for further details.
11 
12 * *****************************************************************/
13 
14 
20 #include "lib/query-text.hpp"
21 
22 #include <boost/functional/hash.hpp>
23 #include <string>
24 
25 using std::string;
26 
27 
28 namespace lib {
29 
30 
36  string
37  QueryText::normalise (string const& rawDefinition)
38  {
39  return rawDefinition;
40  }
41 
42 
51  HashVal
53  {
54  return boost::hash_value (entry.definition_);
55  }
56 
57 
58 } // namespace lib
AnyPair entry(Query< TY > const &query, typename WrapReturn< TY >::Wrapper &obj)
helper to simplify creating mock table entries, wrapped correctly
string normalise(string const &rawDefinition)
Parse, verify and normalise the raw query definition.
Definition: query-text.cpp:37
A generic syntactical representation for all kinds of queries.
friend HashVal hash_value(QueryText const &entry)
support using queries in hashtables.
Definition: query-text.cpp:52
Implementation namespace for support and library code.
HashVal hash_value(QueryText const &entry)
support using queries in hashtables.
Definition: query-text.cpp:52
size_t HashVal
a STL compatible hash value
Definition: hash-value.h:52
Syntactical query representation.
Definition: query-text.hpp:61