ufe 5.5
Universal Front End is a DCC-agnostic component that will allow a DCC to browse and edit data in multiple data models
|
Observer pattern Observer class. More...
#include <observer.h>
Public Types | |
typedef std::shared_ptr< Observer > | Ptr |
typedef std::weak_ptr< Observer > | WeakPtr |
Public Member Functions | |
virtual | ~Observer () |
Destructor. More... | |
virtual void | operator() (const Notification ¬ification) |
Receive notification from Subject. Implementation in this class does nothing. More... | |
Observer () | |
Observer pattern Observer class.
This class implements the Observer in the Observer Pattern:
https://en.wikipedia.org/wiki/Observer_pattern
Observers are held by weak pointer. The order in which observers are notified is unspecified, implementation dependent, and can change at any time. Observers should NOT rely on the order in which they are added to a Subject and assume they will be called in the same order.
Definition at line 33 of file observer.h.
typedef std::shared_ptr<Observer> Ufe::Observer::Ptr |
Definition at line 36 of file observer.h.
typedef std::weak_ptr<Observer> Ufe::Observer::WeakPtr |
Definition at line 37 of file observer.h.
|
virtual |
Destructor.
Ufe::Observer::Observer | ( | ) |
Constructor Not protected to simplify Python bindings.
|
virtual |
Receive notification from Subject. Implementation in this class does nothing.