Stress_UI/include/configFile.hpp

17 lines
488 B
C++
Raw Permalink Normal View History

2020-10-20 14:16:46 +02:00
#include "config.hpp"
#include <fstream>
#include <sstream>
2021-05-06 12:00:44 +02:00
#include <string>
2020-10-20 14:16:46 +02:00
#ifndef __CONFIG_FILE_HPP_
#define __CONFIG_FILE_HPP_
namespace cf {
2021-05-06 12:00:44 +02:00
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);
void escribirText(std::ofstream *file, std::string *text, int numSpcs);
2020-10-20 14:16:46 +02:00
} // namespace cf
#endif // __CONFIG_FILE_HPP_