Raspberry Pi Weighting Control System
This project serves as a simple weighting control system, that was realized as a Bachelor Thesis
config_loader.h
Go to the documentation of this file.
1 #ifndef CONFIG_LOADER_H
2 #define CONFIG_LOADER_H
3 
4 #include <string>
5 
6 #define OPT_CFG_REF_UNIT_KEY "ref_unit"
7 #define OPT_CFG_OFFSET_KEY "offset"
8 
9 namespace config_loader {
16  int load_main_config_ini(const char* cfg_path);
23  int exist_opt_config(const char* cfg_path);
30  int load_opt_config(const char* cfg_path);
39  int replace_opt_in_opt_config(const char* cfg_path, std::string key, std::string value);
40 };
41 
42 #endif
int replace_opt_in_opt_config(const char *cfg_path, std::string key, std::string value)
This is used to replace a values in optional config.
int load_main_config_ini(const char *cfg_path)
This funciton loads main configuration. _ini symobolizes that the expected format is ....
int load_opt_config(const char *cfg_path)
Loads the optional config.
int exist_opt_config(const char *cfg_path)
Checks if optional config exists.