Notification object. More...
#include <glv_observer_pattern.h>
Public Member Functions | |
| Notification (void *sndr, void *rcvr=0, const void *data=0) | |
| template<class T > | |
| T * | sender () const |
| Get pointer to sending object. | |
| void * | sender () const |
| Get raw pointer to sending object. | |
| template<class T > | |
| T * | receiver () const |
| Get pointer to receiving object. | |
| void * | receiver () const |
| Get raw pointer to receiving object. | |
| const void * | data () const |
| Get raw pointer to data object. | |
| template<class T > | |
| const T * | data () const |
| Get pointer to data object. | |
Notification object.
This is passed into notification callbacks
| glv::Notification::Notification | ( | void * | sndr, | |
| void * | rcvr = 0, |
|||
| const void * | data = 0 | |||
| ) | [inline] |
| [in] | sndr | Pointer to sending object (subject) |
| [in] | rcvr | Pointer to receiving object (observer) |
| [in] | data | Pointer to data object |
1.7.1