Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

ElementRecorder.h

Go 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.2 $
00022 // $Date: 2000/12/18 10:03:11 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/recorder/ElementRecorder.h,v $
00024                                                                         
00025                                                                         
00026 #ifndef ElementRecorder_h
00027 #define ElementRecorder_h
00028 
00029 // File: ~/recorder/ElementRecorder.h
00030 //
00031 // Written: fmk 
00032 // Created: 09/99
00033 // Revision: A
00034 //
00035 // Description: This file contains the class definition for ElementRecorder.
00036 // A ElementRecorder is used to obtain a response from an element during 
00037 // the analysis.
00038 //
00039 // What: "@(#) ElementRecorder.h, revA"
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;     // output stream
00091 };
00092 
00093 
00094 #endif
00095 ÿ
Copyright Contact Us