application.h

Go to the documentation of this file.
00001 #ifndef  __Application_h
00002 #define  __Application_h
00003 
00004 
00005 #include  "gascoigne.h"
00006 
00007 
00008 /*-------------------------------------------------------*/
00009 
00010 namespace Gascoigne
00011 {
00012 
00017 
00021 
00022   class Application
00023   {
00024     private:
00025       mutable double _dt, _time;
00026 
00027     protected:
00028       double GetTime() const {
00029         return _time;
00030       }
00031       double GetTimeStep() const {
00032         return _dt;
00033       }
00034 
00035     public:
00036       //
00038       //
00039 
00040       Application() : _dt(0.),_time(0.) {}
00041       virtual ~Application() {}
00042 
00043       virtual std::string GetName() const=0;
00044 
00045       virtual void SetTime(double time, double dt) const {
00046         _time = time; 
00047         _dt = dt;
00048       }
00049 
00050       virtual void SetFemData(FemData& q) const {}
00051       virtual void SetCellData(CellData& q) const {}
00052       virtual void SetParameterData(LocalParameterData& q) const {}
00053  };
00054 }
00055 
00056 #endif
00057 

Generated on Thu Sep 14 10:34:36 2006 for Gascoigne by  doxygen 1.4.7