X-Git-Url: http://git.treefish.org/~alex/phys/latlib.git/blobdiff_plain/b8c3dcf5e075cc961b2693b1fcb8d1b8604e8f7c..2c7e8d0d8fdb233087376cc62752fdc45646c8c8:/writeout.h?ds=sidebyside diff --git a/writeout.h b/writeout.h index e7c3ea1..67c07c8 100644 --- a/writeout.h +++ b/writeout.h @@ -3,6 +3,7 @@ #include #include +#include using namespace std; @@ -11,21 +12,24 @@ class writeout public: writeout(const string& wdir, const string& signature, const int& rank, const int& procs, const long& timestamp=0); - ostream *out; + void newsub(string subname); + map out; ostream *log; ~writeout(); private: - ofstream of; + map of; + map buf; ofstream logf; - streambuf *buf; streambuf *logbuf; string fulldir; char cRank[20]; + int rank; string tstamp(const long& timestamp); int numprocs; - string getdatfile(); + string getdatfile(string subname); string timestring(); + string signature; }; #endif