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
SMSubject Class Reference

Derive from Subject class. More...

#include <SMSubject.h>

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

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...
 

Detailed Description

Derive from Subject class.

implementation of the observer pattern

Definition at line 24 of file SMSubject.h.

Constructor & Destructor Documentation

SMSubject::SMSubject ( )
inline

constructor nothing particular all is done in the base class

Definition at line 28 of file SMSubject.h.

virtual SMSubject::~SMSubject ( )
inlinevirtual

destructor

Definition at line 34 of file SMSubject.h.

Member Function Documentation

void SMSubject::Updated ( )

send updated function no argument

Definition at line 10 of file SMSubject.cpp.

References Subject::notify().

Here is the call graph for this function:

void SMSubject::Updated ( std::vector< std::string > &  message)

send updated with vector argument

Definition at line 22 of file SMSubject.cpp.

References Subject::notify().

Here is the call graph for this function:


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