| 8 |
|
#include <cstdio> |
| 9 |
|
#include <cstdlib> |
| 10 |
|
|
| 11 |
+ |
|
| 12 |
|
#include "Atom.hpp" |
| 13 |
|
#include "SimInfo.hpp" |
| 14 |
|
#include "Thermo.hpp" |
| 15 |
|
|
| 16 |
|
using namespace std; |
| 17 |
|
|
| 18 |
+ |
|
| 19 |
+ |
|
| 20 |
+ |
|
| 21 |
|
class DumpWriter{ |
| 22 |
|
|
| 23 |
|
public: |
| 73 |
|
~DumpReader(); |
| 74 |
|
|
| 75 |
|
int getNframes(); |
| 76 |
< |
void getNextFrame(); |
| 73 |
< |
void getFrame(SimInfo* the_entry_plug, int whichFrame); |
| 74 |
< |
void rewind(); |
| 76 |
> |
void scanFile( void ); |
| 77 |
|
|
| 78 |
+ |
void getNextFrame() {} |
| 79 |
+ |
void readFrame(SimInfo* the_simnfo, int whichFrame); |
| 80 |
+ |
|
| 81 |
|
private: |
| 82 |
+ |
|
| 83 |
+ |
void readSet( int which Frame ); |
| 84 |
|
char* parseDumpLine(char* line, int atomIndex); |
| 85 |
|
char* parseCommentLine(char* line, double &time, double boxMat[9] ); |
| 86 |
< |
FILE *c_in_file; |
| 87 |
< |
char c_in_name[500]; |
| 88 |
< |
SimInfo* simnfo; |
| 86 |
> |
FILE *inFile; |
| 87 |
> |
char inName[500]; |
| 88 |
> |
bool isScanned; |
| 89 |
> |
int nFrames; |
| 90 |
> |
|
| 91 |
> |
SimInfo *simnfo; |
| 92 |
|
}; |
| 93 |
|
|
| 94 |
|
|