mirror of
https://github.com/lucaspalomodevelop/autom.git
synced 2026-03-12 23:27:21 +00:00
35 lines
573 B
C++
35 lines
573 B
C++
|
|
|
|
#ifndef SETTINGS_H
|
|
#define SETTINGS_H
|
|
|
|
#include "../libs/json/single_include/nlohmann/json.hpp"
|
|
|
|
using json = nlohmann::json;
|
|
|
|
#ifdef _WIN32
|
|
#include <direct.h>
|
|
#endif
|
|
|
|
#include <fstream>
|
|
#include <iostream>
|
|
#include <algorithm>
|
|
#include <string>
|
|
#include "./setup.h"
|
|
#include "./singleton.h"
|
|
|
|
class Settings : public Singleton<Settings>
|
|
{
|
|
|
|
private:
|
|
std::string settings_name = ".automconfig.json";
|
|
|
|
public:
|
|
json value;
|
|
Settings(void);
|
|
~Settings(void);
|
|
void readSettings();
|
|
Settings &operator=(const Settings &) = default;
|
|
};
|
|
|
|
#endif // SETTINGS_H
|