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