]> git.treefish.org Git - phys/latlib.git/blob - writeout.h
...
[phys/latlib.git] / writeout.h
1 #ifndef WRITEOUT_H
2 #define WRITEOUT_H
3
4 #include <ostream>
5 #include <fstream>
6
7 using namespace std;
8
9 class writeout
10 {
11  public:
12   writeout(const string& wdir, const string& signature, 
13            const int& rank, const int& procs);
14   ostream *out;
15   ~writeout();
16
17  private:
18   ofstream of;
19   streambuf *buf;
20   string fulldir;
21   char cRank[20];
22   string tstamp();
23   int numprocs;
24   string getdatfile();
25 };
26
27 #endif