--- trunk/OOPSE/libmdtools/ReadWrite.hpp 2003/07/21 16:23:10 641 +++ trunk/OOPSE/libmdtools/ReadWrite.hpp 2003/07/22 16:41:08 644 @@ -56,29 +56,31 @@ class InitializeFromFile{ (private) private: char* parseDumpLine(char* line, int atomIndex); - char* parseBoxLine(char* line, double boxMat[9] ); + char* parseBoxLine(char* line, double boxMat[9], double &time ); FILE *c_in_file; char c_in_name[500]; SimInfo* simnfo; }; class DumpReader{ + +public: DumpReader( char *in_name ); ~DumpReader(); int getNframes(); void getNextFrame(); - void getFrame(SimInfo* the_entry_plug, int whichFrame) + void getFrame(SimInfo* the_entry_plug, int whichFrame); void rewind(); private: char* parseDumpLine(char* line, int atomIndex); - char* parseCommentLine(char* line, double time, double boxMat[9] ); + char* parseCommentLine(char* line, double &time, double boxMat[9] ); FILE *c_in_file; char c_in_name[500]; SimInfo* simnfo; }; -public: + #endif