Design a configuration file reader class that can be used to read values from configuration files for each hardware manager thread. This class is useful because some parameters might need to be changed without recompiling the code, such as the maximum temperature threshold of the chiller, for example. It would be easier to change that value from a configuration file than if it is hard coded in the code.
The design shall include:
-A constructor function that is passed a string with the path to the configuration file.
-A read configuration value function that is given the name of the configuration parameter and shall return the value from the configuration file.
-A standard configuration file structure that can be standard for each hardware manager thread. For example, the file format could contain the parameter name, type and value which are all separated by commas.
The design shall include:
-A constructor function that is passed a string with the path to the configuration file.
-A read configuration value function that is given the name of the configuration parameter and shall return the value from the configuration file.
-A standard configuration file structure that can be standard for each hardware manager thread. For example, the file format could contain the parameter name, type and value which are all separated by commas.