]> git.treefish.org Git - phys/latlib.git/blobdiff - writeout.h
...
[phys/latlib.git] / writeout.h
index 48057d4d506e3b355a7e849440be6cfd615e2488..6c04ace3d0b653383fec54fb408572631a8ed24b 100644 (file)
@@ -5,23 +5,28 @@
 #include <fstream>
 
 using namespace std;
-
 class writeout
 {
  public:
   writeout(const string& wdir, const string& signature, 
-          const int& rank, const int& procs);
+          const int& rank, const int& procs, const long& timestamp=0);
   ostream *out;
+  ostream *log;
   ~writeout();
 
  private:
   ofstream of;
+  ofstream logf;
   streambuf *buf;
+  streambuf *logbuf;
   string fulldir;
   char cRank[20];
-  string tstamp();
+  string tstamp(const long& timestamp);
   int numprocs;
   string getdatfile();
+  string timestring();
+  static bool DirectoryExists(const char* pzPath);
 };
 
 #endif