53 #ifndef COMMON_BASIC_SETUP_H 54 #define COMMON_BASIC_SETUP_H 61 #include <boost/program_options.hpp> 66 #define LUMIERA_LOCATION_OF_BOOTSTRAP_INI "$ORIGIN/setup.ini" 74 namespace opt = boost::program_options;
100 opt::options_description syntax;
101 opt::variables_map settings;
109 return get (key).as<string>();
112 opt::variable_value
const&
116 __ensure_hasKey(keyID);
117 return settings[keyID];
123 __ensure_hasKey (
string const& key)
const 125 if (!util::contains (settings, key))
126 throw error::Logic (
"Key \""+key+
"\" not found in setup.ini");
Any copy and copy construction prohibited.
inline string literal This is a marker type to indicate that
Derived specific exceptions within Lumiera's exception hierarchy.
Mix-Ins to allow or prohibit various degrees of copying and cloning.
Marker types to indicate a literal string and a Symbol.
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.
Represents the elementary self-configuration of a running Lumiera application instance.