2020-05-08 12:43:46 +02:00
|
|
|
#ifndef CONFIG_PACKAGE_H
|
|
|
|
#define CONFIG_PACKAGE_H
|
|
|
|
#include <string>
|
|
|
|
#include <fstream>
|
|
|
|
|
|
|
|
class config_package
|
|
|
|
{
|
|
|
|
public:
|
2020-06-01 23:23:23 +02:00
|
|
|
/**
|
|
|
|
* @brief config_package
|
|
|
|
* Generate a config file, or replace it
|
|
|
|
* @param name Name of the package
|
|
|
|
*/
|
2020-05-08 12:43:46 +02:00
|
|
|
config_package(std::string name);
|
2020-06-01 23:23:23 +02:00
|
|
|
/**
|
|
|
|
* @brief change_uses
|
|
|
|
* Write a config file
|
|
|
|
* @param remote_uses Info to write in the file
|
|
|
|
*/
|
2020-05-08 12:43:46 +02:00
|
|
|
void change_uses(std::string remote_uses);
|
|
|
|
private:
|
|
|
|
std::string name;
|
|
|
|
std::string uses;
|
|
|
|
std::fstream file;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CONFIG_PACKAGE_H
|