aboutsummaryrefslogtreecommitdiff
path: root/src/file.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/file.cc')
-rw-r--r--src/file.cc19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/file.cc b/src/file.cc
index 2bff9b8..e009542 100644
--- a/src/file.cc
+++ b/src/file.cc
@@ -50,6 +50,25 @@ file::
void file::
store (char const * const key,
+ bool const value)
+{
+ assert (key);
+
+ ostringstream keybuf;
+ keybuf << key;
+ ostringstream valuebuf;
+ valuebuf << (value ? "yes" : "no");
+
+ ostringstream buf;
+ buf << clean (keybuf.str()) << "=" << clean (valuebuf.str()) << endl;
+
+ write (buf.str());
+}
+
+
+
+void file::
+store (char const * const key,
int const value)
{
assert (key);