33#ifndef LUMIERA_QUERY_DEFS_MANAGER_IMPL_H
34#define LUMIERA_QUERY_DEFS_MANAGER_IMPL_H
59 INFO (
session,
"Configure technical defaults of the session.");
88 typeHandler.
resolve (res, capabilities);
102 typeHandler.
resolve (res, capabilities);
113 P<TAR> candidate (defaultObj);
115 typeHandler.
resolve (candidate, capabilities);
139 res =
create (capabilities);
144 ,
LERR_(CAPABILITY_QUERY) );
Customised refcounting smart pointer template, built upon std::shared_ptr, but forwarding type relati...
Generic interface to express a query for specifically typed result elements exposing some capabilitie...
bool forget(lib::P< TAR > const &)
remove the defaults registration of the given object, if there was such
DefsManager() noexcept
initialise the most basic internal defaults.
lib::P< TAR > create(Query< TAR > const &)
retrieve an object fulfilling the query and register it as default.
unique_ptr< impl::DefsRegistry > defsRegistry_
bool define(lib::P< TAR > const &, Query< TAR > const &=Query< TAR >())
register the given object as default, after ensuring it fulfils the query.
lib::P< TAR > search(Query< TAR > const &)
search through the registered defaults, never create anything.
lib::P< TAR > operator()(Query< TAR > const &)
common access point: retrieve the default object fulfilling some given conditions.
the "front side" interface: the Steam-Layer code can use this QueryHandler to retrieve instances of t...
virtual bool resolve(P< TY > &solution, Query< TY > const &q)=0
try to find or create an object of type TY fulfilling the given query.
used for enumerating solutions
user-visible Interface to the ConfigRules subsystem.
A front-end for using printf-style formatting.
Interface for accessing rule based configuration.
Management of defaults and default rules.
A piece of implementation code factored out into a separate header (include).
Lumiera error handling (C++ interface).
LumieraError< LERR_(CONFIG), Invalid > Config
Lumiera public interface.
Namespace of Session and user visible high-level objects.