ROOT_Application
2.0
C++ Core modules and GUIStock
|
#include <ObsPattern_Sub.h>
Public Member Functions | |
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... | |
Protected Member Functions | |
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... | |
Private Member Functions | |
Subject (const Subject &) | |
make empty copy contructor More... | |
Subject & | operator= (const Subject &) |
Private Attributes | |
std::vector< Observer * > | vec_observer |
vector of registered observer More... | |
Definition at line 30 of file ObsPattern_Sub.h.
|
inlinevirtual |
Definition at line 33 of file ObsPattern_Sub.h.
|
inlineprotected |
constructor is protected
Definition at line 47 of file ObsPattern_Sub.h.
|
private |
make empty copy contructor
|
inlinevirtual |
function for subject to register
Definition at line 36 of file ObsPattern_Sub.h.
References vec_observer.
Referenced by GUIMainController::GUIMainController().
|
inlinevirtual |
function to detach, unregister, not used
Definition at line 40 of file ObsPattern_Sub.h.
References vec_observer.
|
protected |
notify a message to all registered observer
Definition at line 12 of file ObsPattern_Sub.cpp.
References vec_observer.
Referenced by SMSubject::Updated().
|
protected |
notify with one parameters
Definition at line 24 of file ObsPattern_Sub.cpp.
References vec_observer.
|
private |
vector of registered observer
Definition at line 55 of file ObsPattern_Sub.h.