Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
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"
25
27
28
29namespace 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
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
Wrapper for indexing and ordering.
Definition query.hpp:371
Interface for accessing rule based configuration.
#define LUMIERA_ERROR_DEFINE(err, msg)
Definition and initialisation of an error constant.
Definition error.h:71
Lumiera error handling (C++ interface).
bool isFakeBypass(lumiera::QueryKey const &q)
void setFakeBypass(lumiera::QueryKey const &q)
backdoor for tests: the next config query with this query string will magically succeed with every ca...
Lumiera public interface.
Definition advice.hpp:102
Basic and generic representation of an internal query.