00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef ElementRecorder_h
00027 #define ElementRecorder_h
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041 #include <Recorder.h>
00042 #include <fstream.h>
00043
00044 #include <Information.h>
00045 #include <G3Globals.h>
00046 #include <ID.h>
00047
00048
00049 #include <Domain.h>
00050 #include <Vector.h>
00051 #include <Matrix.h>
00052 #include <Element.h>
00053 #include <Response.h>
00054
00056 class ElementRecorder: public Recorder
00057 {
00058 public:
00060 ElementRecorder(const ID &eleID, Domain &theDomain, char **argv, int argc,
00061 bool echoTime, char *fileName =0);
00062
00064 ~ElementRecorder();
00066 int record(int commitTag);
00068 int playback(int commitTag);
00069
00071 void restart(void);
00072
00073 protected:
00074
00075 private:
00077 int numEle;
00079 ID responseID;
00080 Information *eleInfoObjects;
00081 Element **theElements;
00082
00083 Response **theResponses;
00084
00086 Domain *theDomain;
00088 bool echoTimeFlag;
00089 char theFileName[MAX_FILENAMELENGTH];
00090 ofstream theFile;
00091 };
00092
00093
00094 #endif
00095 ÿ