X-Git-Url: http://git.treefish.org/~alex/phys/latlib.git/blobdiff_plain/759171112bbb5c0121f2ba762a2b1d9ad96a271d..6441a11e7c0fe2ab5bad813770474858302a88dd:/writeout.h?ds=sidebyside diff --git a/writeout.h b/writeout.h new file mode 100644 index 0000000..48057d4 --- /dev/null +++ b/writeout.h @@ -0,0 +1,27 @@ +#ifndef WRITEOUT_H +#define WRITEOUT_H + +#include +#include + +using namespace std; + +class writeout +{ + public: + writeout(const string& wdir, const string& signature, + const int& rank, const int& procs); + ostream *out; + ~writeout(); + + private: + ofstream of; + streambuf *buf; + string fulldir; + char cRank[20]; + string tstamp(); + int numprocs; + string getdatfile(); +}; + +#endif