ALib C++ Library
Library Version: 2510 R0
Documentation generated by doxygen
Loading...
Searching...
No Matches
ALib Configuration Variables

Description

Trough the use of class Configuration defined in module ALib Variables of the ALib C++ Library, external configuration variables can be comfortably defined and accessed.

The variables documented here are defined and used with module ALib Camp and provide some small tools for general use.

Configuration data can be provided in configuration files, by setting environment variables, providing command line parameters or by any custom mechanism.

While this is a reference appendix chapter, for general information, please refer to:

Note
Setting environment variables is platform-specific and is not part of this documentation. To get an overview, refer to Wikipedia .

This page lists the few variables defined with module ALib Camp. The variables are resourced with this module and declared with enum class camp::Variables.

Variable Index

Attention
The variables defined with ALox are documented here!

Reference Documentation

ALIB/LOCALE

Default Value: "" (empty string)

This boolean variable is evaluated within bootstrapping camp BASECAMP. The behavior is as follows:

  • if not set, the environment variables LANG and LANGUAGE are evaluated and if set, their value is passed to glibc method setlocale().
  • if set to "none", the invocation of setlocale() is suppressed.
  • if set to anything different than "none", the value is passed to glibc method setlocale().

The right definition of the locale is important, when using methods of module ALib Strings for converting multi-byte character strings to wide character strings. Furthermore, default values for formatting numbers and other types are influenced by this variable.

ALIB/HAS_CONSOLE_WINDOW

Default Value: "" (empty string)

This boolean configuration variable overwrites the value determined in method Basecamp::HasConsoleWindow.

ALIB/WAIT_FOR_KEY_PRESS

Default Value: "" (empty string)
This boolean variable is evaluated within bootstrapping camp BASECAMP.

If set, it overrules the default behavior of detecting an appropriate value for field Basecamp::WaitForKeyPressOnTermination.