ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/branches/new_design/OOPSE-4/src/io/ZConsReader.hpp
Revision: 1911
Committed: Mon Jan 10 18:05:45 2005 UTC (19 years, 5 months ago) by tim
File size: 893 byte(s)
Log Message:
more work in zconstraint

File Contents

# Content
1 #ifndef IO_ZCONSREADER_HPP
2 #define IO_ZCONSREADER_HPP
3
4 #include <fstream>
5 #include <string>
6 #include <vector>
7 #include "brains/SimInfo.hpp"
8 #include "constraints/ZconsStruct.hpp"
9 namespace oopse {
10
11
12 /**
13 * @class ZConsReader
14 * @todo document
15 */
16 class ZConsReader{
17 public:
18
19 ZConsReader(SimInfo* info);
20 ~ZConsReader();
21
22 void readNextFrame();
23 bool hasNextFrame();
24 int getNZMols() {return allZmols_.size();}
25 int getNFixedZmols() {return fixedZmolData_.size();}
26 const std::vector<ZconsData>& getFixedZMolData() {return fixedZmolData_; }
27 double getCurTime() {return curTime_; }
28
29 private:
30
31 std::ifstream istream_;
32 SimInfo* info_;
33 std::vector<int> allZmols_;
34 double curTime_;
35 std::vector<ZconsData> fixedZmolData_;
36 const static int MAXBUFFERSIZE = 2000;
37 };
38
39 }
40 #endif

Properties

Name Value
svn:executable *