2010-04-04 06:38:22 +02:00
|
|
|
|
2008-01-14 01:01:11 +01:00
|
|
|
/*
|
2008-01-18 16:43:53 +01:00
|
|
|
ConfigRules - interface for rule based configuration
|
2010-12-17 23:28:49 +01:00
|
|
|
|
2008-03-10 04:25:03 +01:00
|
|
|
Copyright (C) Lumiera.org
|
|
|
|
|
2008, Hermann Vosseler <Ichthyostega@web.de>
|
2010-12-17 23:28:49 +01:00
|
|
|
|
2008-01-14 01:01:11 +01:00
|
|
|
This program is free software; you can redistribute it and/or
|
|
|
|
|
modify it under the terms of the GNU General Public License as
|
2010-12-17 23:28:49 +01:00
|
|
|
published by the Free Software Foundation; either version 2 of
|
|
|
|
|
the License, or (at your option) any later version.
|
|
|
|
|
|
2008-01-14 01:01:11 +01:00
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
GNU General Public License for more details.
|
2010-12-17 23:28:49 +01:00
|
|
|
|
2008-01-14 01:01:11 +01:00
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
2010-12-17 23:28:49 +01:00
|
|
|
|
2008-01-14 01:01:11 +01:00
|
|
|
* *****************************************************/
|
|
|
|
|
|
|
|
|
|
|
2016-11-03 18:22:31 +01:00
|
|
|
/** @file config-rules.cpp
|
2016-11-04 21:26:56 +01:00
|
|
|
** Implementation backend part for a configuration rules / query system.
|
|
|
|
|
** @todo placeholder and mostly not implemented as of 11/2016
|
2016-11-03 18:20:10 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
2010-04-04 06:38:22 +02:00
|
|
|
#include "lib/error.hpp"
|
2012-12-25 01:16:19 +01:00
|
|
|
#include "common/query.hpp"
|
2012-12-01 08:44:07 +01:00
|
|
|
#include "common/config-rules.hpp"
|
2008-01-14 01:01:11 +01:00
|
|
|
|
2012-12-25 01:16:19 +01:00
|
|
|
using lumiera::QueryKey;
|
2008-01-14 01:01:11 +01:00
|
|
|
|
|
|
|
|
|
2010-04-04 06:38:22 +02:00
|
|
|
namespace lumiera {
|
|
|
|
|
namespace query {
|
2008-01-14 01:01:11 +01:00
|
|
|
|
2008-03-10 08:38:59 +01:00
|
|
|
LUMIERA_ERROR_DEFINE (CAPABILITY_QUERY, "unresolvable capability query");
|
2008-01-29 05:39:32 +01:00
|
|
|
|
2010-04-04 06:38:22 +02:00
|
|
|
|
2008-01-14 01:01:11 +01:00
|
|
|
} // namespace query
|
2008-12-05 11:07:01 +01:00
|
|
|
|
2008-04-07 08:03:22 +02:00
|
|
|
|
2010-04-04 06:38:22 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace query {
|
|
|
|
|
namespace { // local definitions: implementing a backdoor for tests
|
2012-12-25 01:16:19 +01:00
|
|
|
QueryKey fakeBypass;
|
2010-04-04 06:38:22 +02:00
|
|
|
}
|
2008-04-07 08:03:22 +02:00
|
|
|
|
2012-12-25 01:16:19 +01:00
|
|
|
void setFakeBypass(QueryKey const& q) { fakeBypass = q; }
|
|
|
|
|
bool isFakeBypass (QueryKey const& q) { return q == fakeBypass; }
|
2010-11-02 04:09:06 +01:00
|
|
|
/////////////////////////////////////////////////////////////////////////////TICKET 710
|
2008-04-07 08:03:22 +02:00
|
|
|
|
2012-12-01 08:44:07 +01:00
|
|
|
}// namespace query
|
2008-03-10 08:38:59 +01:00
|
|
|
} // namespace lumiera
|