Gravar y cargar correctamente la configuración
Signed-off-by: somebody_master <somebody_master@somebodyserver.mooo.com>
This commit is contained in:
@ -7,11 +7,11 @@ private:
|
||||
std::string *tiempo;
|
||||
|
||||
public:
|
||||
Config(int8_t nh, std::string t);
|
||||
~Config();
|
||||
Config(int8_t numHilos, std::string tiempo);
|
||||
// ~Config();
|
||||
int8_t getNumHilos();
|
||||
std::string getTiempo();
|
||||
void setNumHilos(int8_t nh);
|
||||
void setTiempo(std::string t);
|
||||
void setNumHilos(int8_t numHilos);
|
||||
void setTiempo(std::string timepo);
|
||||
};
|
||||
#endif // __CONFIG_HPP_
|
||||
|
@ -4,11 +4,11 @@
|
||||
#ifndef __CONFIG_FILE_HPP_
|
||||
#define __CONFIG_FILE_HPP_
|
||||
namespace cf {
|
||||
const std::string g_cofigFile = "~/.config/stressUI.cfg";
|
||||
Config *openConfig();
|
||||
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();
|
||||
void createConfig();
|
||||
void saveConfig(Config *config);
|
||||
} // namespace cf
|
||||
#endif // __CONFIG_FILE_HPP_
|
||||
|
Reference in New Issue
Block a user