Stress_UI/include/configFile.hpp
somebody_master e7466d01ee
Gravar y cargar correctamente la configuración
Signed-off-by: somebody_master <somebody_master@somebodyserver.mooo.com>
2020-10-26 12:13:47 +01:00

15 lines
397 B
C++

#include "config.hpp"
#include <fstream>
#include <string>
#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);
} // namespace cf
#endif // __CONFIG_FILE_HPP_