ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/libmdtools/ReadWrite.hpp
(Generate patch)

Comparing trunk/OOPSE/libmdtools/ReadWrite.hpp (file contents):
Revision 657 by chuckv, Wed Jul 30 21:17:01 2003 UTC vs.
Revision 804 by mmeineke, Thu Oct 16 19:16:24 2003 UTC

# Line 1 | Line 1
1   #ifndef __READWRITE_H__
2   #define __READWRITE_H__
3  
4 + #define _FILE_OFFSET_BITS 64
5 +
6   #include <iostream>
7   #include <fstream>
8  
9   #include <cstring>
10   #include <cstdio>
11   #include <cstdlib>
12 + #include <unistd.h>
13 + #include <sys/types.h>
14 + #include <sys/stat.h>
15  
16  
17   #include "Atom.hpp"
# Line 15 | Line 20 | using namespace std;
20  
21   using namespace std;
22  
23 + class FilePos{
24 +  
25 + public:
26 +  FilePos(){
27 +    myPos = NULL;
28 +    next = NULL;
29 +  }
30 +  FilePos( fpos_t* thePos ) {
31 +    myPos = thePos;
32 +    next = NULL;
33 +  }
34 +  ~FilePos(){
35 +    if( next  != NULL ) delete next;
36 +    if( myPos != NULL ) delete myPos;
37 +  }
38 +  
39 +  void add( fpos_t *thePos ){
40 +    if( next != NULL )
41 +      next->add( thePos );
42 +    else
43 +      next = new FilePos( thePos );
44 +  }
45 +  
46 +  FilePos &operator=(fpos_t *thePos){ myPos = thePos; return *this; }
47 +  
48 +  void setPos( fpos_t *thePos ){ myPos = thePos; }
49 +  fpos_t *getPos( void ){ return myPos; }
50 +  
51 +  FilePos* getNext( void ) { return next; }
52 + private:
53 +  
54 +  fpos_t *myPos;
55 +  FilePos* next;
56 +  
57 + };
58  
19
20
59   class DumpWriter{
60  
61   public:
# Line 87 | Line 125 | class DumpReader{ (private)
125    char inName[500];
126    bool isScanned;
127    int nFrames;
128 +  
129 +  FilePos** frameStart;
130 +  FilePos* headFP;
131  
132    SimInfo *simnfo;
133   };

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines