16 lines
508 B
C++
16 lines
508 B
C++
#include "config.hpp"
|
|
#include <fstream>
|
|
#include <string>
|
|
#include <sstream>
|
|
#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);
|
|
void escribirText(std::ofstream *file, std::string *text, int numSpcs);
|
|
} // namespace cf
|
|
#endif // __CONFIG_FILE_HPP_
|