FileConfigReader

Config reader that reads a configuration from a file.

Implements: ConfigReader

Description

The FileConfigReader class allows you to create a config reader that reads a configuration from a file.

Configuration parameters

  • path: path to configuration file
  • parameters: this entire section is used as template parameters

Constructors

Creates a new instance of the config reader.

FileConfigReader(path: str = None)

  • path: str - (optional) a path to configuration file.

Instance methods

configure

Configures component by passing configuration parameters.

configure(config: ConfigParams)

  • config: ConfigParams - configuration parameters to be set.

get_path

Gets the path to configuration file.

get_path(): str

  • returns: str - path to configuration file.

set_path

Sets the path to configuration file.

set_path(path: str)

  • path: str - new path to configuration file.

See also