Lumiera 0.pre.04~rc.1
»edit your freedom«
Loading...
Searching...
No Matches
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
25using std::string;
26
27
28namespace lib {
29
30
36 string
37 QueryText::normalise (string const& rawDefinition)
38 {
39 return rawDefinition;
40 }
41
42
52 hash_value (QueryText const& entry)
53 {
54 return boost::hash_value (entry.definition_);
55 }
56
57
58} // namespace lib
Syntactical query representation.
string normalise(string const &rawDefinition)
Parse, verify and normalise the raw query definition.
Implementation namespace for support and library code.
size_t HashVal
a STL compatible hash value
Definition hash-value.h:52
HashVal hash_value(QueryText const &entry)
support using queries in hashtables.
A generic syntactical representation for all kinds of queries.