X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=lib%2FEditorGraphicBBS%2FbbsKernelEditorGraphic%2FObservable.h;h=7adc257324cdefa61408c1c0d48f814a7ab40d4b;hb=ee78ea5e5132aa8e24b525dfa92fd0a355e8245a;hp=72e1e80cb6b50b8f6c4f30daae39d4660b57ac70;hpb=098558ac7780900858114a8ae01fe93847d67043;p=bbtkGEditor.git diff --git a/lib/EditorGraphicBBS/bbsKernelEditorGraphic/Observable.h b/lib/EditorGraphicBBS/bbsKernelEditorGraphic/Observable.h index 72e1e80..7adc257 100644 --- a/lib/EditorGraphicBBS/bbsKernelEditorGraphic/Observable.h +++ b/lib/EditorGraphicBBS/bbsKernelEditorGraphic/Observable.h @@ -47,6 +47,9 @@ Version: $Revision$ #include "Observer.h" +//Includes same project +#include "GlobalConstants.h" + //Includes std #include #include @@ -66,17 +69,11 @@ namespace bbtk //Public methods void addObserver(Observer *observer); - bool hasChanged(); - - void notifyObservers(); - - void setChanged(); + void notifyObservers(int idCaller,int command=NO_COMMAND); private: - //Private Attributes - bool _changed; - + //Private Attributes std::vector _observers; //Private Methods