Lumiera  0.pre.03
»edit your freedom«
BasicSetup Class Reference

#include "common/basic-setup.hpp"

Description

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.

WIP 2011 – preliminary configuration solution
The full-blown Configuration subsystem is just drafted and way from being usable. Thus we'll use this basic configuration as a replacement for the time being.
See also
configfacade.hpp
AppState

Definition at line 97 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
 
NonCopyableoperator= (NonCopyable const &)=delete
 

Private Attributes

opt::variables_map settings
 
opt::options_description syntax
 

Constructor & Destructor Documentation

◆ BasicSetup()

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 82 of file basic-setup.cpp.

+ Inheritance diagram for BasicSetup:
+ Collaboration diagram for BasicSetup:

The documentation for this class was generated from the following files: