![]() |
Lumiera 0.pre.04
»edit your freedom«
|
Mock/Test/Debugging Implementation of the config rules system. More...
Go to the source code of this file.
Mock/Test/Debugging Implementation of the config rules system.
Instead of actually parsing/analysing/resolving queries, this implementation uses a Table of hard wired queries together with preconfigured object instances as answer values. As of 1/2008 it is used to "keep the implementation work going" – later on, when we use a real Prolog interpreter, it still may be useful for testing and debugging.
QueryHandler<TY>::resolve(solution,query) function(s). Below, there is a really confusing and ugly ping-pong game involving the faked solutions and the mocked defaults manager. This is spaghetti code, written for the reason everyone writes spaghetti code: to get away with it. So please look away, some day the real thing will be there, displacing this mess without further notice. Definition in file fake-configrules.hpp.
#include "steam/mobject/session.hpp"#include "steam/config-resolver.hpp"#include "lib/depend-inject.hpp"#include "lib/query-util.hpp"#include "lib/util.hpp"#include "lib/p.hpp"#include <boost/any.hpp>#include <string>#include <map>Namespaces | |
| namespace | steam |
| Steam-Layer implementation namespace root. | |
| namespace | steam::mobject |
| Media-Objects, edit operations and high-level session. | |
| namespace | steam::mobject::session |
| Namespace of Session and user visible high-level objects. | |
| namespace | steam::mobject::session::query |
| namespace | steam::mobject::session::query::anonymous_namespace{fake-configrules.hpp} |
Classes | |
| struct | WrapReturn< TY > |
| a traits-class to define the smart-ptr to wrap the result More... | |
| struct | WrapReturn< ProcPatt > |
| class | MockTable |
| the actual table holding preconfigured answers packaged as boost::any objects. More... | |
| class | LookupPreconfigured |
| class | MockConfigRules |
| Facade: Dummy Implementation of the query interface. More... | |
Functions | |
| template<typename TY > | |
| bool | is_defaults_query (Query< TY > const &querySpec) |
| helper detecting if a query actually intended to retrieve a "default" object. | |
| template<typename WRA > | |
| bool | exists (WRA const &solution) |
| _Pragma ("GCC diagnostic push") _Pragma("GCC diagnostic ignored \"-Woverloaded-virtual\"") template< class TY | |
| building block providing the mock implementation for a single type. | |
| struct steam::mobject::session::query::anonymous_namespace{fake-configrules.hpp}::WrapReturn |