ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-2.0/src/io/ZConsWriter.hpp
Revision: 1625
Committed: Thu Oct 21 16:22:01 2004 UTC (19 years, 8 months ago) by tim
File size: 660 byte(s)
Log Message:
replace old GebericData with  new GenericData

File Contents

# User Rev Content
1 gezelter 1490 #ifndef __ZCONSWRITER_H__
2     #define __ZCONSWRITER_H__
3    
4     #define _LARGEFILE_SOURCE64
5     # ifndef _FILE_OFFSET_BITS
6     # define _FILE_OFFSET_BITS 64
7     # endif
8    
9     #include <iostream>
10     #include <fstream>
11    
12 tim 1625 #include "constraints/ZconsData.hpp"
13 gezelter 1490
14     #ifdef IS_MPI
15     #include <mpi.h>
16 tim 1492 #include "brains/mpiSimulation.hpp"
17 gezelter 1490 #endif
18    
19     using namespace std;
20 tim 1625 using namespace oopse;
21 gezelter 1490
22     class ZConsWriter {
23    
24     public:
25     ZConsWriter(const char* filename, vector<ZConsParaItem>* thePara);
26     ~ZConsWriter();
27    
28     void writeFZ(double time, int num, int* index, double* fz, double* curZPos, double* zpos);
29    
30     private:
31     void writeZPos();
32     ofstream output;
33     vector<ZConsParaItem>* parameters;
34     };
35    
36     #endif