aboutsummaryrefslogtreecommitdiff
path: root/src/storage.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/storage.hh')
-rw-r--r--src/storage.hh47
1 files changed, 25 insertions, 22 deletions
diff --git a/src/storage.hh b/src/storage.hh
index e0b5ddb..08f400f 100644
--- a/src/storage.hh
+++ b/src/storage.hh
@@ -7,55 +7,58 @@
namespace Formaline
{
-
-
-
+
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 storage *
+ open_group (char const * name)
+ = 0;
+
virtual void
store (char const * key,
bool value)
- = 0;
-
+ = 0;
+
virtual void
store (char const * key,
CCTK_INT value)
- = 0;
-
+ = 0;
+
virtual void
store (char const * key,
CCTK_REAL value)
- = 0;
-
+ = 0;
+
virtual void
store (char const * key,
char const * value)
- = 0;
+ = 0;
+
};
-
-
-
+
+
+
} // namespace Formaline
-#endif // ifndef FORMALINE_STORAGE_HH
+#endif // #ifndef FORMALINE_STORAGE_HH