#include <plugins.hpp>
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 453 of file config/plugins.hpp.
Public Methods | |
| Environment () | |
| virtual | ~Environment () override |
| virtual ALIB_API bool | Load (Variable &variable, bool searchOnly=false) override |
| virtual ALIB_API String | Name () const override |
Public Methods 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 Fields inherited from ConfigurationPlugin | |
| XTernalizer * | StringConverter |
Protected Fields inherited from ConfigurationPlugin | |
| XTernalizer | defaultStringConverter |
Protected Methods inherited from ConfigurationPlugin | |
| ConfigurationPlugin () | |
| 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 418 of file plugins.cpp.
|
overridevirtual |
Return the plug-in name, in this case, we read resource variable CfgPlgEnv.
Implements ConfigurationPlugin.
Definition at line 413 of file plugins.cpp.