Fields of class Variable , which is monotonically allocated and derived from SelfContained and as such needs this special struct for field definition.
Definition at line 45 of file variable.hpp.
#include <variable.hpp>
Public Field Index: | |
String | Category |
String | Comments = nullptr |
Configuration * | Config |
String | DefaultValue = nullptr |
character | Delim |
FormatHints | FmtHints |
String | FormatAttrAlignment = nullptr |
String | Fullname |
String | Name |
Priorities | Priority |
std::vector< String, StdContMA< String > > | values |
Public Method Index: | |
VariableFields (monomem::SelfContained< VariableFields >::Fields **fields) | |
String Category |
The configuration variable category.
Definition at line 51 of file variable.hpp.
String Comments = nullptr |
The configuration variable comments with placeholders replaced.
Definition at line 76 of file variable.hpp.
The Configuration that was recently used to request or store the value.
Definition at line 48 of file variable.hpp.
String DefaultValue = nullptr |
The default value provided as an externalized string.
The only occasion that this value is used is with method Configuration::Load . If no plug-in has this variable defined and this field is not nulled, then the value is written into plug-in of priority Priorities::DefaultValues , respectively - if this default plug-in was replaced by the user - into a plug-in found at or below this priority.
In this case, the value is parsed using method XTernalizer::LoadFromString of field ConfigurationPlugin::StringConverter of the plug-in writing the value.
Definition at line 102 of file variable.hpp.
character Delim |
The delimiter used for parsing and storing values by simple textual plug-ins which use the default version of XTernalizer for in- and externalizing variables.
Definition at line 60 of file variable.hpp.
FormatHints FmtHints |
Hints for formatting textual configuration files. (Used by class IniFile and potentially by custom plug-ins.
Definition at line 66 of file variable.hpp.
String FormatAttrAlignment = nullptr |
If set, attributes written in multi-lines are vertically aligned by this character or string. Use cases are "=", ":" or "->".
Used by IniFile and potentially by custom plug-ins.
Definition at line 73 of file variable.hpp.
String Fullname |
The configuration variable category and name concatenated with an underscore character '_'
. This is useful e.g. for naming variables in log messages.
Definition at line 80 of file variable.hpp.
String Name |
The configuration variable name.
Definition at line 54 of file variable.hpp.
Priorities Priority |
A value related to the priority of a configuration plug-in. The following values apply:
0
, if the last load or store operation failed. In addition prior to storing a variable, the value might be manually set. See documentation of Configuration::Store ) for details. Definition at line 116 of file variable.hpp.
The values.
Definition at line 119 of file variable.hpp.
|
inline |
Constructor.
fields | Pointer to the fields pointer of the self-contained object. |
Definition at line 130 of file variable.hpp.