- Fix the bug about reconfiguring a policy don't resetting the

History the Hard Way(tm)


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1026 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
tchernobog 2006-09-06 16:33:39 +00:00
parent cb1d85a4cc
commit 22dded7243
5 changed files with 31 additions and 12 deletions

View file

@ -488,6 +488,13 @@ ConcreteHistory::edit_subrequest(SubRequest& subrequest,
}
void
ConcreteHistory::reset()
{
reset(true);
}
void
ConcreteHistory::set_front(position p)
{

View file

@ -117,7 +117,8 @@ namespace sgpem
// (Returns if the History was sealed before this call)
bool seal();
virtual void reset(bool notify = true);
void reset(); // Implements a virtual method
void reset(bool notify); // Only available in this class
protected:
typedef std::vector<ConcreteEnvironment*> Snapshots;

View file

@ -129,7 +129,7 @@ namespace sgpem
time_t duration) = 0;
virtual position get_front() const;
virtual bool is_sealed() const = 0;
virtual bool is_sealed() const = 0;
virtual void attach(HistoryObserver& observer);
virtual void detach(const HistoryObserver& observer);
@ -144,6 +144,8 @@ namespace sgpem
*/
virtual bool set_notify_enabled(bool enabled = true);
virtual void reset() = 0;
protected:
typedef std::vector<HistoryObserver*> RegisteredObservers;
RegisteredObservers _observers;