Specialization of abstract interface class ConfigurationPlugin, retrieves configuration data from the system environment.
Its priority value usually is Priorities::Environment , which is higher than Priorities::Standard but lower than Priorities::CLI .
Variable categories are used as a prefix together with an underscore '_'. This means, if variable LOCALE in category ALIB is accessed, the environment variable ALIB_LOCALE is read.
Category and Variable names are insensitive in respect to character case.
Definition at line 452 of file config/plugins.hpp.
#include <plugins.hpp>
Public Method Index: | |
| Environment () | |
| virtual | ~Environment () override |
| virtual ALIB_API bool | Load (Variable &variable, bool searchOnly=false) override |
| virtual ALIB_API String | Name () const override |
Public Method Index: inherited from ConfigurationPlugin | |
| virtual | ~ConfigurationPlugin () |
| virtual Iterator * | GetIterator (const String §ionName) |
| virtual bool | Store (Variable &variable) |
| virtual bool | Store (Variable &variable, const String &externalizedValue) |
Additional Inherited Members | |
Public Field Index: inherited from ConfigurationPlugin | |
| XTernalizer * | StringConverter |
| Environment | ( | ) |
|
inlineoverridevirtual |
|
overridevirtual |
Searches the variable in the environment.
| variable | The variable to retrieve. |
| searchOnly | If true, the variable is not set. Defaults to false. |
true if variable was found, false if not. Implements ConfigurationPlugin.
Definition at line 421 of file plugins.cpp.
|
overridevirtual |
Return the plug-in name, in this case, we read resource variable CfgPlgEnv.
Implements ConfigurationPlugin.
Definition at line 416 of file plugins.cpp.