summaryrefslogtreecommitdiff
path: root/src/configfile.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2015-05-22 10:39:49 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2015-05-22 10:39:49 +0200
commit158838f9b52d21610626f55964170a3e82f6ccdb (patch)
tree0dee778483d667209aca5f2a0a09d9f0c213bca0 /src/configfile.h
parentbef1d5542f926a3b942374707dd56041013d35ff (diff)
parent2699cb7d324ffb1d2adc62e1f62434397aa39e2d (diff)
Merge with master
Diffstat (limited to 'src/configfile.h')
-rw-r--r--src/configfile.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/configfile.h b/src/configfile.h
index 21a6b88..a6c50bd 100644
--- a/src/configfile.h
+++ b/src/configfile.h
@@ -36,8 +36,8 @@ public:
ConfigFile(std::string filename);
virtual ~ConfigFile();
- virtual void load();
- virtual void save();
+ virtual bool load();
+ virtual bool save();
virtual std::string getValue(const std::string& key);
virtual void setValue(const std::string& key, const std::string& value);
@@ -46,9 +46,10 @@ protected:
std::map<std::string, std::string> values;
std::string filename;
- bool open(std::string mode);
+ virtual bool open(std::string mode);
void close();
std::string readLine();
+ bool parseLine(const std::string& line);
FILE* fp;
};