aboutsummaryrefslogtreecommitdiff
path: root/src/file.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/file.hh')
-rw-r--r--src/file.hh37
1 files changed, 22 insertions, 15 deletions
diff --git a/src/file.hh b/src/file.hh
index 2141d9f..8997114 100644
--- a/src/file.hh
+++ b/src/file.hh
@@ -12,47 +12,54 @@
namespace Formaline
{
-
+
class file : public storage
{
std::ofstream fil;
-
+ std::string const path;
+ file * const parent;
+
public:
-
+
file (char const * id,
- enum state st);
-
+ enum state st,
+ char const * p = "",
+ file * const par = 0);
+
virtual
~ file ();
-
+
+ virtual file *
+ open_group (char const * name);
+
virtual void
store (char const * key,
bool value);
-
+
virtual void
store (char const * key,
CCTK_INT value);
-
+
virtual void
store (char const * key,
CCTK_REAL value);
-
+
virtual void
store (char const * key,
char const * value);
-
+
private:
-
+
void
write (std::string const & msg);
-
+
std::string
clean (std::string const & txt)
const;
};
-
-
-
+
+
+
} // namespace Formaline