52#define KEY_CONFIG_PATH "Lumiera.configpath"
59#define KEY_PLUGIN_PATH "Lumiera.modulepath"
79 TRACE (common,
"booting up config system");
93 TRACE (config,
"Config system ready.");
100 TRACE (config,
"config system closed.");
113 throw error::Config (
"Configuration value for key=\""+key+
"\" is missing");
137 return "plugin.path="
140 return cStr(pathSpec);
Registering and managing primary application-global services.
Access point to singletons and other kinds of dependencies designated by type.
Helper: Access a path Specification as a sequence of filesystem Paths.
static lib::Depend< AppState > instance
get the (single) AppState instance.
C++ wrapper for convenient access to the Lumiera config system.
static string get(lib::Literal key)
static lib::Depend< Config > instance
storage and setup for the single system-wide config facade instance
define and register a callback for a specific lifecycle event.
The lumiera::Config wrapper class addresses two issues.
int lumiera_config_init(const char *path)
Initialise the configuration subsystem.
void lumiera_config_destroy()
Destroys the configuration subsystem.
Interface for a lumiera configuration system (draft).
#define KEY_PLUGIN_PATH
Similarly, this key is used to fetch the configured default plugin/module search path from the basic ...
const char * lumiera_get_plugin_path_default()
#define KEY_CONFIG_PATH
key to fetch the search path for extended configuration.
Building tree expanding and backtracking evaluations within hierarchical scopes.
Installing and invoking of application lifecycle event callbacks.
This header is for including and configuring NoBug.
LifecycleHook trigger__(ON_BASIC_INIT, &pull_up_ConfigSystem)
void pull_up_ConfigSystem()
LumieraError< LERR_(CONFIG), Invalid > Config
Lumiera public interface.
CStr ON_BASIC_INIT
automatic static init. treated specially to run as soon as possible
string join(COLL &&coll, string const &delim=", ")
enumerate a collection's contents, separated by delimiter.
bool isnil(lib::time::Duration const &dur)
Helpers to handle directory search paths.
CStr cStr(std::string const &rendered)
convenience shortcut: forced conversion to c-String via string.
Tiny helper functions and shortcuts to be used everywhere Consider this header to be effectively incl...