ROOT_Application
2.0
C++ Core modules and GUIStock
|
Concrete class of an observer. More...
#include <GUIObserver.h>
Public Member Functions | |
GUIObserver () | |
GUIObserver (GUIMainController *main_guicontrol) | |
virtual | ~GUIObserver () |
virtual void | update (Subject *, std::vector< std::string > &message) |
overwritte the (pure) virtual function of Observer subject not used here, but said better, more general, from internet More... | |
Public Member Functions inherited from Observer | |
virtual | ~Observer () |
virtual void | update (Subject *) |
simplest update version More... | |
Private Attributes | |
GUIMainController * | gui_control |
associates a gui_controller More... | |
Additional Inherited Members | |
Protected Member Functions inherited from Observer | |
Observer () | |
Concrete class of an observer.
Specific for main application here.
If independent object, will receive the update from the observer but still need to communicate with GUIMainFrame or Controller, so need a pointer to MainFrame or MainController
If GUIMainFrame derive from Observer, will receive directly the message
Here associated to main frame, but could be specialized to a specific frame, maybe with a mediator interface
Definition at line 29 of file GUIObserver.h.
|
inline |
Definition at line 32 of file GUIObserver.h.
References gui_control.
|
inline |
Definition at line 38 of file GUIObserver.h.
|
inlinevirtual |
Definition at line 43 of file GUIObserver.h.
References gui_control.
|
virtual |
overwritte the (pure) virtual function of Observer subject not used here, but said better, more general, from internet
update is called from utils/ObsPattern_Sub
update is called from utils/ObsPattern_Sub and overriden Get message and save into RealTime object, through MainController and MainGUIFrame
Reimplemented from Observer.
Definition at line 31 of file GUIObserver.cxx.
References GUIMainController::AddObserver_Message(), and gui_control.
|
private |
associates a gui_controller
Definition at line 57 of file GUIObserver.h.
Referenced by GUIObserver(), update(), and ~GUIObserver().