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.1.1 $
00022 // $Date: 2000/09/15 08:23:17 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/database/FE_Datastore.h,v $
00024
00025
00026 #ifndef FE_Datastore_h
00027 #define FE_Datastore_h
00028
00029 // File: ~/database/FE_Datastore.h
00030 //
00031 // Written: fmk
00032 // Created: 10/98
00033 // Revision: A
00034 //
00035 // Description: This file contains the class definition for FE_Datastore.
00036 // FE_Datastore is an abstract base class. An FE_datastore object is used
00037 // in the program to store/restore the geometry and state information in
00038 // a domain at a particular instance in the analysis.
00039 //
00040 // What: "@(#) FE_Datastore.h, revA"
00041
00042 #include <Channel.h>
00043
00044 #include <Domain.h>
00045 #include <FEM_ObjectBroker.h>
00046
00057 class FE_Datastore: public Channel
00058 {
00059 public:
00061 FE_Datastore(Domain &theDomain, FEM_ObjectBroker &theBroker);
00062
00064 virtual ~FE_Datastore();
00065
00066 // pure virtual functions in addition to those defined
00068
00069 virtual int getDbTag(void) =0;
00071 virtual int commitState(int commitTag);
00073 virtual int restoreState(int commitTag);
00074
00075 protected:
00077 FEM_ObjectBroker *getObjectBroker(void);
00078
00079 private:
00081 FEM_ObjectBroker *theObjectBroker;
00083 Domain *theDomain;
00084 };
00085
00086
00087 #endif
00088