X-Git-Url: http://git.treefish.org/~alex/phys/latlib.git/blobdiff_plain/4d3aa1df919cc19d1bf2f66e5272d9ecda95d463..e82cb4b1f88e18f5b9487e49f79b9a091942132f:/writeout.h diff --git a/writeout.h b/writeout.h index 6c04ace..fc48c16 100644 --- a/writeout.h +++ b/writeout.h @@ -3,6 +3,7 @@ #include #include +#include using namespace std; @@ -10,23 +11,25 @@ class writeout { public: writeout(const string& wdir, const string& signature, - const int& rank, const int& procs, const long& timestamp=0); - ostream *out; + const int& rank, const int& procs); + 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]; - string tstamp(const long& timestamp); + int rank; int numprocs; - string getdatfile(); + string getdatfile(string subname); string timestring(); - static bool DirectoryExists(const char* pzPath); + string signature; + static string longToStr (long arg); }; #endif