Lumiera  0.pre.03
»edit your freedom«
config-rules.cpp
Go to the documentation of this file.
1 
2 /*
3  ConfigRules - interface for rule based configuration
4 
5  Copyright (C)
6  2008, Hermann Vosseler <Ichthyostega@web.de>
7 
8   **Lumiera** is free software; you can redistribute it and/or modify it
9   under the terms of the GNU General Public License as published by the
10   Free Software Foundation; either version 2 of the License, or (at your
11   option) any later version. See the file COPYING for further details.
12 
13 * *****************************************************************/
14 
15 
22 #include "lib/error.hpp"
23 #include "common/query.hpp"
24 #include "common/config-rules.hpp"
25 
26 using lumiera::QueryKey;
27 
28 
29 namespace lumiera {
30  namespace error {
31  LUMIERA_ERROR_DEFINE (CAPABILITY_QUERY, "unresolvable capability query");
32  }
33  namespace query {
34 
35 
36 
37  } // namespace query
38 
39 
40 
41 
42 
43  namespace query {
44  namespace { // local definitions: implementing a backdoor for tests
45  QueryKey fakeBypass;
46  }
47 
48  void setFakeBypass(QueryKey const& q) { fakeBypass = q; }
49  bool isFakeBypass (QueryKey const& q) { return q == fakeBypass; }
51 
52  }// namespace query
53 } // namespace lumiera
void setFakeBypass(lumiera::QueryKey const &q)
backdoor for tests: the next config query with this query string will magically succeed with every ca...
Basic and generic representation of an internal query.
Wrapper for indexing and ordering.
Definition: query.hpp:388
Lumiera error handling (C++ interface).
Lumiera public interface.
Definition: advice.cpp:104
Interface for accessing rule based configuration.
#define LUMIERA_ERROR_DEFINE(err, msg)
Definition and initialisation of an error constant.
Definition: error.h:71