Lumiera  0.pre.03
»edit your freedom«
config-rules.cpp File Reference

Go to the source code of this file.

Description

Implementation backend part for a configuration rules / query system.

Todo:
placeholder and mostly not implemented as of 11/2016

Definition in file config-rules.cpp.

#include "lib/error.hpp"
#include "common/query.hpp"
#include "common/config-rules.hpp"

Functions

bool isFakeBypass (lumiera::QueryKey const &q)
 
 LUMIERA_ERROR_DEFINE (CAPABILITY_QUERY, "unresolvable capability query")
 
void setFakeBypass (lumiera::QueryKey const &q)
 backdoor for tests: the next config query with this query string will magically succeed with every candidate object provided. More...
 

Variables

QueryKey fakeBypass
 

Namespaces

 lumiera
 Lumiera public interface.
 

Function Documentation

◆ setFakeBypass()

void setFakeBypass ( lumiera::QueryKey const &  q)

backdoor for tests: the next config query with this query string will magically succeed with every candidate object provided.

This is currently necessary to get objects into the defaults manager, as the query system is not able to do real query resolution

Definition at line 55 of file config-rules.cpp.

References lumiera::query::setFakeBypass().

Referenced by lumiera::query::setFakeBypass().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: