--- trunk/OOPSE/libmdtools/ReadWrite.hpp 2003/07/22 16:41:08 644 +++ trunk/OOPSE/libmdtools/ReadWrite.hpp 2003/07/22 21:49:38 647 @@ -8,12 +8,16 @@ #include #include + #include "Atom.hpp" #include "SimInfo.hpp" #include "Thermo.hpp" using namespace std; + + + class DumpWriter{ public: @@ -70,15 +74,20 @@ class DumpReader{ (public) int getNframes(); void getNextFrame(); - void getFrame(SimInfo* the_entry_plug, int whichFrame); - void rewind(); + void scanFile( void ); + private: + + void getFrame(SimInfo* the_simnfo, int whichFrame); char* parseDumpLine(char* line, int atomIndex); char* parseCommentLine(char* line, double &time, double boxMat[9] ); - FILE *c_in_file; - char c_in_name[500]; - SimInfo* simnfo; + FILE *inFile; + char inName[500]; + bool isScanned; + int nFrames; + + SimInfo *simnfo; };