5 |
|
#include <string> |
6 |
|
#include <vector> |
7 |
|
|
8 |
– |
#include "integrators/Integrator.hpp" |
8 |
|
#include "brains/SimInfo.hpp" |
9 |
|
|
10 |
< |
using namespace std; |
10 |
> |
namespace oopse { |
11 |
|
|
12 |
+ |
/** |
13 |
+ |
* @class ZConsReader |
14 |
+ |
* @todo document |
15 |
+ |
*/ |
16 |
|
class ZConsReader{ |
17 |
|
public: |
18 |
|
|
24 |
|
void readNextFrame(); |
25 |
|
bool hasNextFrame(); |
26 |
|
int getNumZMol(); |
27 |
< |
vector<int> getZConsIndex(); |
28 |
< |
vector<double> getZConsPos(); |
27 |
> |
std::vector<int> getZConsIndex(); |
28 |
> |
std::vector<double> getZConsPos(); |
29 |
|
//vector<double> getKRatio(); |
30 |
|
|
31 |
< |
vector<double> getCurZPos(); |
32 |
< |
vector<double> getCurFZ(); |
31 |
> |
std::vector<double> getCurZPos(); |
32 |
> |
std::vector<double> getCurFZ(); |
33 |
|
double getCurTime(); |
34 |
|
|
35 |
|
private: |
36 |
+ |
|
37 |
|
ifstream* istream; |
38 |
|
SimInfo* info; |
39 |
< |
string zconsFileName; |
39 |
> |
std::string zconsFileName; |
40 |
|
|
41 |
|
int nZMol; |
42 |
< |
vector<int> index; |
43 |
< |
vector<double> zconsPos; |
42 |
> |
std::vector<int> index; |
43 |
> |
std::vector<double> zconsPos; |
44 |
|
//vector<double> kRatio; |
45 |
|
|
46 |
|
double curTime; |
47 |
< |
vector<double> curFZ; |
48 |
< |
vector<double> curZPos; |
47 |
> |
std::vector<double> curFZ; |
48 |
> |
std::vector<double> curZPos; |
49 |
|
|
50 |
|
}; |
51 |
|
|
52 |
+ |
} |
53 |
|
#endif |