ALib C++ Library
Library Version: 2402 R1
Documentation generated by doxygen
Loading...
Searching...
No Matches
Environment Class Reference

Description:


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>

Inheritance diagram for Environment:
[legend]
Collaboration diagram for Environment:
[legend]

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 IteratorGetIterator (const String &sectionName)
 
virtual bool Store (Variable &variable)
 
virtual bool Store (Variable &variable, const String &externalizedValue)
 

Additional Inherited Members

- Public Field Index: inherited from ConfigurationPlugin
XTernalizerStringConverter
 

Constructor(s) / Destructor Details::

◆ Environment()


Constructor.

Definition at line 411 of file plugins.cpp.

◆ ~Environment()

virtual ~Environment ( )
inlineoverridevirtual

Virtual Destructor.

Definition at line 466 of file config/plugins.hpp.

Method Details:

◆ Load()

bool Load ( Variable & variable,
bool searchOnly = false )
overridevirtual

Searches the variable in the environment.

Parameters
variableThe variable to retrieve.
searchOnlyIf true, the variable is not set. Defaults to false.
Returns
true if variable was found, false if not.

Implements ConfigurationPlugin.

Definition at line 421 of file plugins.cpp.

Here is the call graph for this function:

◆ Name()

String Name ( ) const
overridevirtual

Return the plug-in name, in this case, we read resource variable CfgPlgEnv.

Returns
The name of the plug-in.

Implements ConfigurationPlugin.

Definition at line 416 of file plugins.cpp.

Here is the call graph for this function:

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