/[ascend]/trunk/pygtk/integratorreporter.h
ViewVC logotype

Diff of /trunk/pygtk/integratorreporter.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 943 by johnpye, Fri Nov 24 08:07:33 2006 UTC revision 944 by johnpye, Sat Nov 25 10:46:13 2006 UTC
# Line 29  extern "C"{ Line 29  extern "C"{
29  #include <solver/integrator.h>  #include <solver/integrator.h>
30  }  }
31    
32    #include <ostream>
33    
34  class Integrator;  class Integrator;
35    
36  /**  /**
# Line 57  public: Line 59  public:
59    
60      Integrator *getIntegrator();      Integrator *getIntegrator();
61    
62  private:  protected:
63      Integrator *integrator; /**< pointer back to integrator */      Integrator *integrator; /**< pointer back to integrator */
64      IntegratorReporter reporter; /**< for passing to C */      IntegratorReporter reporter; /**< for passing to C */
65    
66      IntegratorReporter *getInternalType();      IntegratorReporter *getInternalType();
67  };  };
68    
69    /**
70        NULL integrator reporter. This reporter won't output ANYTHING at all.
71    */
72  class IntegratorReporterNull : public IntegratorReporterCxx{  class IntegratorReporterNull : public IntegratorReporterCxx{
73  public:  public:
74      IntegratorReporterNull(Integrator *);      IntegratorReporterNull(Integrator *);
# Line 75  public: Line 80  public:
80      virtual int recordObservedValues();      virtual int recordObservedValues();
81  };  };
82    
83    /**
84        Simple console based integrator reporter. Output the observed variables
85        to the console at each sample point.
86    */
87    class IntegratorReporterConsole : public IntegratorReporterCxx{
88    private:
89        std::ostream &f;
90    public:
91        IntegratorReporterConsole(Integrator *);
92        virtual ~IntegratorReporterConsole();
93    
94        virtual int initOutput();
95        virtual int closeOutput();
96        virtual int updateStatus();
97        virtual int recordObservedValues();
98    };
99    
100    
101  int ascxx_integratorreporter_init(IntegratorSystem *blsys);  int ascxx_integratorreporter_init(IntegratorSystem *blsys);
102  int ascxx_integratorreporter_write(IntegratorSystem *blsys);  int ascxx_integratorreporter_write(IntegratorSystem *blsys);
103  int ascxx_integratorreporter_write_obs(IntegratorSystem *blsys);  int ascxx_integratorreporter_write_obs(IntegratorSystem *blsys);

Legend:
Removed from v.943  
changed lines
  Added in v.944

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22