GSA_Recorder.hGo to the documentation of this file.00001 /* ****************************************************************** ** 00002 ** OpenSees - Open System for Earthquake Engineering Simulation ** 00003 ** Pacific Earthquake Engineering Research Center ** 00004 ** ** 00005 ** ** 00006 ** (C) Copyright 1999, The Regents of the University of California ** 00007 ** All Rights Reserved. ** 00008 ** ** 00009 ** Commercial use of this program without express permission of the ** 00010 ** University of California, Berkeley, is strictly prohibited. See ** 00011 ** file 'COPYRIGHT' in main directory for information on usage and ** 00012 ** redistribution, and for a DISCLAIMER OF ALL WARRANTIES. ** 00013 ** ** 00014 ** Developed by: ** 00015 ** Frank McKenna (fmckenna@ce.berkeley.edu) ** 00016 ** Gregory L. Fenves (fenves@ce.berkeley.edu) ** 00017 ** Filip C. Filippou (filippou@ce.berkeley.edu) ** 00018 ** ** 00019 ** ****************************************************************** */ 00020 00021 // $Revision: 1.4 $ 00022 // $Date: 2004/11/24 22:45:28 $ 00023 // $Source: /usr/local/cvs/OpenSees/SRC/recorder/GSA_Recorder.h,v $ 00024 00025 #ifndef GSA_Recorder_h 00026 #define GSA_Recorder_h 00027 00028 // Written: fmk 00029 // Created: 02/03 00030 // 00031 // Description: This file contains the class definition for 00032 // GSA_Recorder. A GSA_Recorder is used to create an o/p file 00033 // which can be read by the Ove Arup's GSA program for 00034 // postprocessing. 00035 // 00036 // What: "@(#) GSA_Recorder.h, revA" 00037 00038 00039 #include <Recorder.h> 00040 #include <ID.h> 00041 #include <Vector.h> 00042 #include <FileStream.h> 00043 00044 class Domain; 00045 class FE_Datastore; 00046 00047 class GSA_Recorder: public Recorder 00048 { 00049 public: 00050 GSA_Recorder(Domain &theDomain, 00051 const char *fileName, 00052 const char *title1, 00053 const char *title2, 00054 const char *title3, 00055 const char *jobno, 00056 const char *initials, 00057 const char *spec, 00058 const char *currency, 00059 const char *length, 00060 const char *force, 00061 const char *temp, 00062 double deltaT = 0.0); 00063 00064 ~GSA_Recorder(); 00065 int record(int commitTag, double timeStamp); 00066 int playback(int commitTag); 00067 int restart(void); 00068 00069 protected: 00070 00071 private: 00072 Domain *theDomain; 00073 int ndm, ndf; 00074 int counter; 00075 FileStream theFile; 00076 double deltaT; 00077 double nextTimeStampToRecord; 00078 }; 00079 00080 #endif |