aboutsummaryrefslogtreecommitdiff
path: root/src/file.cc
diff options
context:
space:
mode:
authorschnetter <schnetter@83718e91-0e4f-0410-abf4-91180603181f>2005-05-27 10:49:27 +0000
committerschnetter <schnetter@83718e91-0e4f-0410-abf4-91180603181f>2005-05-27 10:49:27 +0000
commitf7e4d7ae9de31669bcb700e02bba9e71c4c959e5 (patch)
tree6f9c455fca76e17a7750cb13b4b46616e0288f50 /src/file.cc
parent3c42753983e5094afabe023e956ca30417e5d7df (diff)
Store the source tarballs into a subdirectory to remove clutter.
Restructure the announcing code so that there can be multiple announce targets. "Announce" to a file in the output directory by default. Also announce the list of active thorns and all parameter values. git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/Formaline/trunk@14 83718e91-0e4f-0410-abf4-91180603181f
Diffstat (limited to 'src/file.cc')
-rw-r--r--src/file.cc40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/file.cc b/src/file.cc
new file mode 100644
index 0000000..8982434
--- /dev/null
+++ b/src/file.cc
@@ -0,0 +1,40 @@
+// $Header$
+
+#include <sstream>
+
+#include "cctk_Parameters.h"
+
+#include "file.hh"
+
+
+
+using namespace std;
+
+
+
+file::
+file (char const * const id)
+{
+ DECLARE_CCTK_PARAMETERS;
+
+ ostringstream filenamebuf;
+ filenamebuf << out_dir << "/" << storage_filename;
+ string const filenamestring = filenamebuf.str();
+ fil.open (filenamestring.c_str());
+}
+
+
+
+file::
+~ file ()
+{
+ fil.close();
+}
+
+
+
+void file::
+write (std::string const & msg)
+{
+ fil << msg;
+}