ROOT_Application
2.0
C++ Core modules and GUIStock
|
Derive from Subject class. More...
#include <SMSubject.h>
Public Member Functions | |
SMSubject () | |
constructor nothing particular all is done in the base class More... | |
virtual | ~SMSubject () |
destructor More... | |
void | Updated () |
send updated function no argument More... | |
void | Updated (std::vector< std::string > &message) |
send updated with vector argument More... | |
Public Member Functions inherited from Subject | |
virtual | ~Subject () |
virtual void | attach (Observer *obs) |
function for subject to register More... | |
virtual void | detach (Observer *obs) |
function to detach, unregister, not used More... | |
Additional Inherited Members | |
Protected Member Functions inherited from Subject | |
Subject () | |
constructor is protected More... | |
void | notify () |
notify a message to all registered observer More... | |
void | notify (std::vector< std::string > &message) |
notify with one parameters More... | |
Derive from Subject class.
implementation of the observer pattern
Definition at line 24 of file SMSubject.h.
|
inline |
constructor nothing particular all is done in the base class
Definition at line 28 of file SMSubject.h.
|
inlinevirtual |
destructor
Definition at line 34 of file SMSubject.h.
void SMSubject::Updated | ( | ) |
send updated function no argument
Definition at line 10 of file SMSubject.cpp.
References Subject::notify().
void SMSubject::Updated | ( | std::vector< std::string > & | message | ) |
send updated with vector argument
Definition at line 22 of file SMSubject.cpp.
References Subject::notify().