fill

Fill the given instance of T 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.

If reference is null, an instance will be created.

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)
  2. T fill(cstring group, T reference, Source config)
    T
    fill
    (
    T
    Source = ConfigParser
    )
    (,
    ref T reference
    ,
    Source config
    )

Parameters

group cstring

the group/section of the variable

reference T

the instance to fill. If null it will be created

config Source

instance of the source to use

Return Value

Type: T

an instance filled with values from the configuration file

See Also

Required, SetInfo

Meta