44 #include <boost/filesystem.hpp> 53 namespace fsys = boost::filesystem;
54 namespace opt = boost::program_options;
67 string searchpath = iniSpec.parent_path().string();
83 : syntax(
"Lumiera installation and platform configuration")
87 (
"Lumiera.gui", opt::value<string>(),
88 "name of the Lumiera GUI plugin to load")
89 (
"Lumiera.modulepath", opt::value<string>(),
90 "search path for loadable modules. " 91 "May use $ORIGIN to refer to the EXE location")
92 (
"Lumiera.configpath", opt::value<string>(),
93 "search path for extended configuration. " 94 "Extended Config system not yet implemented " 95 "Ignored as of 2/2011")
96 (
"Lumiera.title", opt::value<string>(),
97 "title of the Lumiera Application, e.g. for windows")
98 (
"Lumiera.version", opt::value<string>(),
99 "Application version string")
100 (
"Lumiera.website", opt::value<string>(),
101 "URL of the Lumiera website")
102 (
"Lumiera.authors", opt::value<string>(),
103 "names of Lumiera authors, for 'about' dialog. Separated by '|'")
104 (
"Lumiera.copyright", opt::value<string>(),
105 "year(s) for the author's copyright claim")
107 (
"Gui.stylesheet", opt::value<string>(),
108 "name of the GTK stylesheet to use. Will be searched in resource path")
109 (
"Gui.iconpath", opt::value<string>(),
110 "search path for icons")
111 (
"Gui.resourcepath", opt::value<string>(),
112 "general search path for UI resources")
115 ifstream configIn (
resolve(bootstrapIni).c_str());
118 opt::parsed_options parsed = opt::parse_config_file (configIn, syntax);
120 opt::store (parsed, settings);
121 opt::notify(settings);
Bootstrap and self-configuration of the application at startup.
Helpers to handle directory search paths.
Tiny helper functions and shortcuts to be used everywhere Consider this header to be effectively incl...
BasicSetup(string bootstrapIni)
Creating the BasicSetup object performs the initial self-configuration of the Lumiera Application...
Lumiera error handling (C++ interface).
Lumiera public interface.
string resolveModulePath(fsys::path moduleName, string searchPath)
helper to establish the location to search for loadable modules, configuration files, icons and further resources.
string resolve(fsys::path iniSpec)
use the general mechanism for resolving a search path to get the absolute path of the setup...