X-Git-Url: http://git.treefish.org/~alex/phys/latlib.git/blobdiff_plain/6441a11e7c0fe2ab5bad813770474858302a88dd..8717c8bf4f2860eed6a4b8552d63dceaa75f4dc5:/writeout.h diff --git a/writeout.h b/writeout.h index 48057d4..e7c3ea1 100644 --- a/writeout.h +++ b/writeout.h @@ -5,23 +5,27 @@ #include 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(); }; #endif