X-Git-Url: http://git.treefish.org/~alex/phys/latlib.git/blobdiff_plain/8df1123044f6db7e7fb1b3981cd77750cb1ebb43..4d3aa1df919cc19d1bf2f66e5272d9ecda95d463:/writeout.h?ds=inline diff --git a/writeout.h b/writeout.h index 4df290d..6c04ace 100644 --- a/writeout.h +++ b/writeout.h @@ -5,23 +5,28 @@ #include using namespace std; - + class writeout { public: writeout(const string& wdir, const string& signature, 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(const long& timestamp); int numprocs; string getdatfile(); + string timestring(); + static bool DirectoryExists(const char* pzPath); }; #endif