aboutsummaryrefslogtreecommitdiff
path: root/src/storage.hh
diff options
context:
space:
mode:
authorschnetter <schnetter@83718e91-0e4f-0410-abf4-91180603181f>2005-05-28 12:04:33 +0000
committerschnetter <schnetter@83718e91-0e4f-0410-abf4-91180603181f>2005-05-28 12:04:33 +0000
commit5555ec71ef4be69a2f4425554d030829a33baac2 (patch)
tree9f3052433dbd2d8e478974e8ccdf682150ca284e /src/storage.hh
parentd41baa0734e66bfe72ffe848ac5fa2fa69ce68f5 (diff)
Make announcing to the portal work
git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/Formaline/trunk@17 83718e91-0e4f-0410-abf4-91180603181f
Diffstat (limited to 'src/storage.hh')
-rw-r--r--src/storage.hh32
1 files changed, 20 insertions, 12 deletions
diff --git a/src/storage.hh b/src/storage.hh
index ce8a6e7..5728404 100644
--- a/src/storage.hh
+++ b/src/storage.hh
@@ -1,7 +1,5 @@
// $Header$
-
-
#ifndef STORAGE_HH
#define STORAGE_HH
@@ -11,27 +9,37 @@ class storage
{
public:
+ enum state { initial, update, final };
+
+private:
+
+ enum state m_state;
+
+public:
+
+ storage (enum state);
+
virtual
~ storage ();
+ enum state
+ get_state ()
+ const;
+
virtual void
store (char const * key,
- int value);
+ int value)
+ = 0;
virtual void
store (char const * key,
- char const * value);
-
-protected:
+ double value)
+ = 0;
virtual void
- write (std::string const & msg)
+ store (char const * key,
+ char const * value)
= 0;
-
- virtual std::string
- clean (std::string const & txt)
- const;
-
};