fill

Creates an instance of T, and fills it with according values from the configuration file. The name of each variable will used to get it from the given section in the configuration file.

Variables can be marked as required with the Required template. If it is important to know whether the setting has been set, the SetInfo struct can be used.

  1. T fill(cstring group, Source config)
    T
    fill
    (
    T
    Source = ConfigParser
    )
  2. T fill(cstring group, T reference, Source config)

Parameters

group cstring

the group/section of the variable

config Source

instance of the source to use

Return Value

Type: T

a new instance filled with values from the configuration file

See Also

Required, SetInfo

Meta