ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/libmdtools/ZConsReader.hpp
Revision: 1074
Committed: Mon Mar 1 20:01:50 2004 UTC (20 years, 4 months ago) by tim
File size: 879 byte(s)
Log Message:
Adding zsub, a program which can be used to replace atom type for zconstraint into OOPSE

File Contents

# Content
1 #ifndef _ZCONSREADER_H_
2 #define _ZCONSREADER_H_
3
4 #include <fstream>
5 #include <string>
6 #include <vector>
7
8 #include "Integrator.hpp"
9 #include "SimInfo.hpp"
10
11 using namespace std;
12
13 class ZConsReader{
14 public:
15
16 ZConsReader(SimInfo* info);
17 ~ZConsReader();
18
19 void readHeader();
20 void readNextFrame();
21 bool hasNextFrame();
22 int getNumZMol();
23 vector<int> getZConsIndex();
24 vector<double> getZConsPos();
25 //vector<double> getKRatio();
26
27 vector<double> getCurZPos();
28 vector<double> getCurFZ();
29 double getCurTime();
30
31 private:
32 ifstream* istream;
33 SimInfo* info;
34 string zconsFileName;
35
36 int nZMol;
37 vector<int> index;
38 vector<double> zconsPos;
39 //vector<double> kRatio;
40
41 double curTime;
42 vector<double> curFZ;
43 vector<double> curZPos;
44
45 };
46
47 #endif

Properties

Name Value
svn:executable *