- I forgot to add two files and remove a debug print.
- Actually there is some printing issue to fix, but the logics works fine. git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@902 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
parent
df4b32f1ba
commit
5432693169
|
@ -94,7 +94,6 @@ ConcreteSimulation::jump_to(History::position p)
|
||||||
|
|
||||||
if (!yet_to_finish)
|
if (!yet_to_finish)
|
||||||
stop();
|
stop();
|
||||||
_history.get_size() << std::endl;
|
|
||||||
_front = p < _front ? p : _front;
|
_front = p < _front ? p : _front;
|
||||||
notify_change();
|
notify_change();
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,25 @@
|
||||||
|
// src/backend/simulation_observer.cc - Copyright 2005, 2006, University
|
||||||
|
// of Padova, dept. of Pure and Applied
|
||||||
|
// Mathematics
|
||||||
|
//
|
||||||
|
// This file is part of SGPEMv2.
|
||||||
|
//
|
||||||
|
// This is free software; you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation; either version 2 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// SGPEMv2 is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with SGPEMv2; if not, write to the Free Software
|
||||||
|
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
|
||||||
|
#include "simulation_observer.hh"
|
||||||
|
|
||||||
|
sgpem::SimulationObserver::~SimulationObserver() {}
|
||||||
|
|
||||||
|
// Pure abstract class. Nothing else to put here.
|
|
@ -0,0 +1,44 @@
|
||||||
|
// src/backend/simulation_observer.hh - Copyright 2005, 2006, University
|
||||||
|
// of Padova, dept. of Pure and Applied
|
||||||
|
// Mathematics
|
||||||
|
//
|
||||||
|
// This file is part of SGPEMv2.
|
||||||
|
//
|
||||||
|
// This is free software; you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation; either version 2 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// SGPEMv2 is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with SGPEMv2; if not, write to the Free Software
|
||||||
|
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
|
||||||
|
#ifndef SIMULATION_OBSERVER_HH
|
||||||
|
#define SIMULATION_OBSERVER_HH 1
|
||||||
|
|
||||||
|
#include "config.h"
|
||||||
|
|
||||||
|
namespace sgpem
|
||||||
|
{
|
||||||
|
class Simulation;
|
||||||
|
class SimulationObserver;
|
||||||
|
|
||||||
|
class SG_DLLEXPORT SimulationObserver
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
virtual void update(const Simulation& changed_simulation) = 0;
|
||||||
|
virtual ~SimulationObserver();
|
||||||
|
|
||||||
|
}
|
||||||
|
; // class SimulationObserver
|
||||||
|
|
||||||
|
}//~ namespace sgpem
|
||||||
|
|
||||||
|
#endif //SIMULATION_OBSERVER_H
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue