1 |
#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 |
#include <string> |
12 |
|
13 |
#include "brains/SimInfo.hpp" |
14 |
#include "constraints/ZconsStruct.hpp" |
15 |
|
16 |
#ifdef IS_MPI |
17 |
#include <mpi.h> |
18 |
#endif |
19 |
|
20 |
namespace oopse { |
21 |
|
22 |
class ZConsWriter { |
23 |
|
24 |
public: |
25 |
ZConsWriter(SimInfo* info, const std::string& filename); |
26 |
~ZConsWriter(); |
27 |
|
28 |
void writeFZ(const std::list<ZconstraintMol>& fixedZmols); |
29 |
|
30 |
private: |
31 |
void writeZPos(); |
32 |
|
33 |
SimInfo* info_; |
34 |
std::ofstream output_; |
35 |
|
36 |
}; |
37 |
|
38 |
} |
39 |
#endif |