ROOT_Application  2.0
C++ Core modules and GUIStock
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes
GUIObserver Class Reference

Concrete class of an observer. More...

#include <GUIObserver.h>

Inheritance diagram for GUIObserver:
Inheritance graph
[legend]
Collaboration diagram for GUIObserver:
Collaboration graph
[legend]

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

GUIMainControllergui_control
 associates a gui_controller More...
 

Additional Inherited Members

- Protected Member Functions inherited from Observer
 Observer ()
 

Detailed Description

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.

Constructor & Destructor Documentation

GUIObserver::GUIObserver ( )
inline

Definition at line 32 of file GUIObserver.h.

References gui_control.

GUIObserver::GUIObserver ( GUIMainController main_guicontrol)
inline

Definition at line 38 of file GUIObserver.h.

virtual GUIObserver::~GUIObserver ( )
inlinevirtual

Definition at line 43 of file GUIObserver.h.

References gui_control.

Member Function Documentation

void GUIObserver::update ( Subject ,
std::vector< std::string > &  message 
)
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.

Here is the call graph for this function:

Field Documentation

GUIMainController* GUIObserver::gui_control
private

associates a gui_controller

Definition at line 57 of file GUIObserver.h.

Referenced by GUIObserver(), update(), and ~GUIObserver().


The documentation for this class was generated from the following files: