aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschnetter <schnetter@83718e91-0e4f-0410-abf4-91180603181f>2005-05-29 16:16:08 +0000
committerschnetter <schnetter@83718e91-0e4f-0410-abf4-91180603181f>2005-05-29 16:16:08 +0000
commitf8fedd5ec017e3ad6d00e9845f0631e2cb64e2cf (patch)
treec99f154c6ea3f9c32819629ac0c9462d10b08087
parent96b573a7387d33431149feeebc9253dbfeafad0d (diff)
Correct error in handling boolean values; they were still treated as
integers in some places git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/Formaline/trunk@25 83718e91-0e4f-0410-abf4-91180603181f
-rw-r--r--src/file.cc2
-rw-r--r--src/multistorage.cc14
-rw-r--r--src/multistorage.hh4
3 files changed, 19 insertions, 1 deletions
diff --git a/src/file.cc b/src/file.cc
index e009542..e0e7527 100644
--- a/src/file.cc
+++ b/src/file.cc
@@ -30,7 +30,7 @@ file (char const * const id,
if (get_state() == initial)
{
- store ("jobid", id);
+ store ("simulation id", id);
}
}
diff --git a/src/multistorage.cc b/src/multistorage.cc
index 6521d3c..374b667 100644
--- a/src/multistorage.cc
+++ b/src/multistorage.cc
@@ -44,6 +44,20 @@ num_storages ()
void multistorage::
+store (char const * const key, bool const value)
+ const
+{
+ for (list<storage *>::const_iterator it = stores.begin();
+ it != stores.end();
+ ++ it)
+ {
+ (* it)->store (key, value);
+ }
+}
+
+
+
+void multistorage::
store (char const * const key, int const value)
const
{
diff --git a/src/multistorage.hh b/src/multistorage.hh
index 6affcbb..50ad470 100644
--- a/src/multistorage.hh
+++ b/src/multistorage.hh
@@ -34,6 +34,10 @@ public:
const;
void
+ store (char const * key, bool value)
+ const;
+
+ void
store (char const * key, int value)
const;