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
|
|
|
* *****************************************************/
|
|
|
|
|
|
|
|
|
|
|
2010-04-04 06:38:22 +02:00
|
|
|
#include "lib/error.hpp"
|
2008-12-18 08:54:33 +01:00
|
|
|
#include "common/configrules.hpp"
|
2012-11-26 01:22:01 +01:00
|
|
|
#include "proc/mobject/session/query/fake-configrules.hpp"
|
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
|
|
|
|
2010-04-04 06:38:22 +02:00
|
|
|
namespace {
|
|
|
|
|
|
2008-02-01 15:35:33 +01:00
|
|
|
/** type of the actual ConfigRules implementation to use */
|
2012-11-26 01:22:01 +01:00
|
|
|
lib::singleton::UseSubclass<proc::mobject::session::query::MockConfigRules> typeinfo;
|
2008-02-01 15:35:33 +01:00
|
|
|
}
|
2008-01-14 01:01:11 +01:00
|
|
|
|
2010-04-04 06:38:22 +02:00
|
|
|
|
2008-12-05 11:07:01 +01:00
|
|
|
/** Singleton factory instance, parametrised to actual impl. type. */
|
2010-04-04 06:38:22 +02:00
|
|
|
lib::SingletonSub<ConfigRules> ConfigRules::instance (typeinfo);
|
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
|
|
|
|
|
string fakeBypass;
|
|
|
|
|
}
|
2008-04-07 08:03:22 +02:00
|
|
|
|
|
|
|
|
void setFakeBypass(string const& q) { fakeBypass = q; }
|
|
|
|
|
bool isFakeBypass (string const& q) { return q == fakeBypass; }
|
2010-11-02 04:09:06 +01:00
|
|
|
/////////////////////////////////////////////////////////////////////////////TICKET 710
|
2008-04-07 08:03:22 +02:00
|
|
|
|
|
|
|
|
} // namespace query
|
2010-04-04 06:38:22 +02:00
|
|
|
|
|
|
|
|
|
2008-04-07 08:03:22 +02:00
|
|
|
|
2008-03-10 08:38:59 +01:00
|
|
|
} // namespace lumiera
|