Re-factorización del código

Signed-off-by: somebody_master <somebody_master@somebodyserver.mooo.com>
This commit is contained in:
2020-10-27 16:39:38 +01:00
parent b0aa7eea06
commit e2b7ac2434
7 changed files with 154 additions and 223 deletions

View File

@ -4,11 +4,10 @@
#ifndef __CONFIG_FILE_HPP_
#define __CONFIG_FILE_HPP_
namespace cf {
const std::string g_configFile =
std::string(getenv("HOME")) + "/.config/stressUI.cfg";
Config openConfig();
void closeConfig(Config *config);
std::string getLine(std::ifstream *file);
void saveConfig(Config *config);
const std::string g_configFile = std::string(getenv("HOME")) + "/.config/stressUI.cfg";
Config openConfig();
void closeConfig(Config *config);
std::string getLine(std::ifstream *file);
void saveConfig(Config *config);
} // namespace cf
#endif // __CONFIG_FILE_HPP_