aboutsummaryrefslogtreecommitdiff
path: root/src/file.hh
diff options
context:
space:
mode:
authoreschnett <eschnett@83718e91-0e4f-0410-abf4-91180603181f>2010-06-30 22:51:04 +0000
committereschnett <eschnett@83718e91-0e4f-0410-abf4-91180603181f>2010-06-30 22:51:04 +0000
commitc36bf320da429160ff61f2772f1a3fc0ddb7fc58 (patch)
tree0618eb16233da41083ccfc866cb930530b4e7609 /src/file.hh
parentb67dd69ee349f83b255cf71bdb0dd2900299481e (diff)
Clean up the source code handling the announce mechanism in Formaline.
Restructure and clean up the makefiles and perl scripts that capture the source code when Cactus is built. Make things work with recent versions of git (>1.6.1). Split thorn tarballs into multiple files if they become too large. Update Formaline example parameter files. Use Carpet instead of PUGH, activate missing thorns. Some reformatting. git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/Formaline/trunk@187 83718e91-0e4f-0410-abf4-91180603181f
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