Basic configuration file init and ppm value save/load test

This commit is contained in:
Charles J. Cliffe
2015-04-13 19:58:34 -04:00
parent 4f2b9d93c3
commit 68d4627e99
5 changed files with 145 additions and 1 deletions
+21
View File
@@ -0,0 +1,21 @@
#pragma once
#include <wx/stdpaths.h>
#include <wx/dir.h>
#include <wx/filename.h>
#include "DataTree.h"
class AppConfig {
public:
std::string getConfigDir();
void setPPM(std::string device_serial, int ppm);
int getPPM(std::string device_serial);
bool save();
bool load();
bool reset();
private:
std::map<std::string, int> device_ppm;
};