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

Information.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:29:13 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/element/Information.h,v $
00024                                                                         
00025                                                                         
00026 // File: ~/element/Information.h
00027 //
00028 // Written: fmk 
00029 // Created: 10/99
00030 // Revision: A
00031 //
00032 // Description: This file contains the class definition for Information.
00033 // Information is a class in which all data members are public, i.e. basically
00034 // a struct.
00035 //
00036 // What: "@(#) Information.h, revA"
00037 
00038 #ifndef Information_h
00039 #define Information_h
00040 
00041 #include <Matrix.h>
00042 #include <Vector.h>
00043 #include <ID.h>
00044 #include <Tensor.h>
00045 
00046 #include <ostream.h>
00047 
00049         IdType, VectorType, MatrixType, TensorType};
00050      
00052 class Information
00053 {
00054   public:
00056     Information();
00058  Information(int val);
00060  Information(double val);
00062  Information(const ID &val);
00064  Information(const Vector &val);
00066  Information(const Matrix &val);
00068  Information(const Tensor &val);
00069 
00071     virtual ~Information();
00072 
00074  virtual int setInt(int newInt);
00076  virtual int setDouble(double newDouble);
00078     virtual int setID(const ID &newID);
00080  virtual int setVector(const Vector &newVector);
00082  virtual int setMatrix(const Matrix &newMatrix);
00084  virtual int setTensor(const Tensor &newTensor);
00085 
00087  virtual void Print(ostream &s, int flag = 0);
00088 
00090     InfoType theType;   
00091     int  theInt;    
00092     double theDouble; 
00093     ID  *theID;    
00094     Vector  *theVector;
00095     Matrix *theMatrix;
00096         Tensor  *theTensor;// pointer to a Tensor object, created elsewhere
00097 
00098   protected:
00099     
00100   private:    
00101 };
00102 
00103 #endif
00104 
00105 �
Copyright Contact Us