50 #define KEY_CONFIG_PATH "Lumiera.configpath" 57 #define KEY_PLUGIN_PATH "Lumiera.modulepath" 75 pull_up_ConfigSystem ()
77 TRACE (common,
"booting up config system");
91 TRACE (config,
"Config system ready.");
98 TRACE (config,
"config system closed.");
111 throw error::Config (
"Configuration value for key=\""+key+
"\" is missing");
132 lumiera_get_plugin_path_default ()
134 static string pathSpec;
135 if (isnil (pathSpec))
137 pathSpec +=
"plugin.path=";
142 pathSpec += pathElement.next() +
":";
145 return cStr(pathSpec);
const char * ON_BASIC_INIT
automatic static init. treated specially to run as soon as possible
Installing and invoking of application lifecycle event callbacks.
Helpers to handle directory search paths.
CStr cStr(std::string const &rendered)
convenience shortcut: forced conversion to c-String via string.
inline string literal This is a marker type to indicate that
Interface for a lumiera configuration system (draft).
This header is for including and configuring NoBug.
Access point to singletons and other kinds of dependencies designated by type.
static string get(lib::Literal key)
#define KEY_CONFIG_PATH
key to fetch the search path for extended configuration.
Derived specific exceptions within Lumiera's exception hierarchy.
The lumiera::Config wrapper class addresses two issues.
Tiny helper functions and shortcuts to be used everywhere Consider this header to be effectively incl...
define and register a callback for a specific lifecycle event.
C++ wrapper for convenient access to the Lumiera config system.
void lumiera_config_destroy()
Destroys the configuration subsystem.
Registering and managing primary application-global services.
Helper: Access a path Specification as a sequence of filesystem Paths.
Lumiera public interface.
#define KEY_PLUGIN_PATH
Similarly, this key is used to fetch the configured default plugin/module search path from the basic ...
int lumiera_config_init(const char *path)
Initialise the configuration subsystem.
static lib::Depend< AppState > instance
get the (single) AppState instance.
static lib::Depend< Config > instance
storage and setup for the single system-wide config facade instance