SimulationInformation.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.1 $
00022 // $Date: 2006/04/28 17:54:28 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/utility/SimulationInformation.h,v $
00024                                                                         
00025                                                                         
00026 // Written: fmk 
00027 // Created: 04/06
00028 //
00029 // Description: This file contains the class definition for SimulationInformation.
00030 // SimulationInformation is used to store information about a simulation; this
00031 // includes start and end times; program version, files opened for reading, files
00032 // opened for writing, and all parameters used (specified with pset or -par option
00033 // to program)
00034 //
00035 // What: "@(#) SimulationInformation.h, revA"
00036 
00037 #ifndef SimulationInformation_h
00038 #define SimulationInformation_h
00039 
00040 #include <OPS_Globals.h>
00041 
00042 class SimulationInformation
00043 {
00044   public:
00045   SimulationInformation();    
00046   ~SimulationInformation();
00047   int start(void);
00048   int end(void);
00049   int addReadFile(const char *);
00050   int addWriteFile(const char *);
00051   int addParameter(const char *name, const char *value);
00052 
00053   
00054   void Print(OPS_Stream &s) const;   
00055   friend OPS_Stream &operator<<(OPS_Stream &s, const SimulationInformation &E);    
00056   
00057  protected:
00058   
00059  private:
00060   char startTime[30];
00061   char endTime[30];
00062   char **filesRead;
00063   char **filesWritten;
00064   char **paramNames;
00065   char **paramValues;
00066   int numFilesWritten;
00067   int numFilesRead;
00068   int numParameters;
00069 };
00070 
00071 
00072 #endif

Generated on Mon Oct 23 15:05:31 2006 for OpenSees by doxygen 1.5.0