Lumiera
0.pre.03
»edit your freedom«
|
#include "common/basic-setup.hpp"
Represents the elementary self-configuration of a running Lumiera application instance.
This basic setup is tied to the location of the Lumiera executable; from there the initial configuration locates a setup.ini
to read in the fundamental settings. This is even prerequisite for loading any extension modules or reading any extended application configuration; usually this bootstrap process happens at or before the start of the main()
function. Any failure leads to immediate termination of the application.
Definition at line 88 of file basic-setup.hpp.
Public Member Functions | |
BasicSetup (string bootstrapIni) | |
Creating the BasicSetup object performs the initial self-configuration of the Lumiera Application. More... | |
opt::variable_value const & | get (lib::Literal key) const |
string | operator[] (lib::Literal key) const |
Private Member Functions | |
void | __ensure_hasKey (string const &key) const |
Private Member Functions inherited from NonCopyable | |
NonCopyable (NonCopyable const &)=delete | |
NonCopyable & | operator= (NonCopyable const &)=delete |
Private Attributes | |
opt::variables_map | settings |
opt::options_description | syntax |
BasicSetup | ( | string | bootstrapIni | ) |
Creating the BasicSetup object performs the initial self-configuration of the Lumiera Application.
For this, the setup.ini
file is located relative to the current application executable, read in and parsed into a map of setup variables.
Definition at line 73 of file basic-setup.cpp.