KeyValueConfigFactory

A generic reusable key/value config factory that can be configured to parse the specifics of certain key/value formats.

class KeyValueConfigFactory : ConfigFactory (
SupportHashtagComments supportHashtagComments = SupportHashtagComments.no
SupportSemicolonComments supportSemicolonComments = SupportSemicolonComments.no
SupportExclamationComments supportExclamationComments = SupportExclamationComments.no
SupportSections supportSections = SupportSections.no
NormalizeQuotedValues normalizeQuotedValues = NormalizeQuotedValues.no
SupportEqualsSeparator supportEqualsSeparator = SupportEqualsSeparator.no
SupportColonSeparator supportColonSeparator = SupportColonSeparator.no
SupportKeysWithoutValues supportKeysWithoutValues = SupportKeysWithoutValues.no
SupportMultilineValues supportMultilineValues = SupportMultilineValues.no
) {}

Members

Functions

parseConfig
ConfigDictionary parseConfig(string contents)

Parse a configuration file following the configured key/value conventions.

Inherited Members

From ConfigFactory

loadFile
ConfigDictionary loadFile(string path)

Loads a configuration from the specified path from disk.

parseConfig
ConfigDictionary parseConfig(string contents)

Parse configuration from the given string.

Meta