44 namespace opt = boost::program_options;
57 string searchpath = iniSpec.parent_path().generic_string();
58 return resolveModulePath (iniSpec.filename(), searchpath);
73 : syntax(
"Lumiera installation and platform configuration")
77 (
"Lumiera.gui", opt::value<string>(),
78 "name of the Lumiera GUI plugin to load")
79 (
"Lumiera.modulepath", opt::value<string>(),
80 "search path for loadable modules. "
81 "May use $ORIGIN to refer to the EXE location")
82 (
"Lumiera.configpath", opt::value<string>(),
83 "search path for extended configuration. "
84 "Extended Config system not yet implemented "
85 "Ignored as of 2/2011")
86 (
"Lumiera.title", opt::value<string>(),
87 "title of the Lumiera Application, e.g. for windows")
88 (
"Lumiera.version", opt::value<string>(),
89 "Application version string")
90 (
"Lumiera.website", opt::value<string>(),
91 "URL of the Lumiera website")
92 (
"Lumiera.authors", opt::value<string>(),
93 "names of Lumiera authors, for 'about' dialog. Separated by '|'")
94 (
"Lumiera.copyright", opt::value<string>(),
95 "year(s) for the author's copyright claim")
97 (
"Gui.stylesheet", opt::value<string>(),
98 "name of the GTK stylesheet to use. Will be searched in resource path")
99 (
"Gui.iconpath", opt::value<string>(),
100 "search path for icons")
101 (
"Gui.resourcepath", opt::value<string>(),
102 "general search path for UI resources")
105 ifstream configIn (resolve(bootstrapIni).c_str());
108 opt::parsed_options parsed = opt::parse_config_file (configIn,
syntax);
Bootstrap and self-configuration of the application at startup.
opt::options_description syntax
opt::variables_map settings
BasicSetup(string bootstrapIni)
Creating the BasicSetup object performs the initial self-configuration of the Lumiera Application.
Lumiera error handling (C++ interface).
Includes the C++ Filesystem library and provides some convenience helpers.
string resolveModulePath(fs::path moduleName, string searchPath)
helper to establish the location to search for loadable modules, configuration files,...
string resolve(fs::path iniSpec)
use the general mechanism for resolving a search path to get the absolute path of the setup....
Lumiera public interface.
Helpers to handle directory search paths.
Tiny helper functions and shortcuts to be used everywhere Consider this header to be effectively incl...