Public Member Functions

glv::Notification Class Reference

Notification object. More...

#include <glv_observer_pattern.h>

List of all members.

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.

Detailed Description

Notification object.

This is passed into notification callbacks


Constructor & Destructor Documentation

glv::Notification::Notification ( void *  sndr,
void *  rcvr = 0,
const void *  data = 0 
) [inline]
Parameters:
[in] sndr Pointer to sending object (subject)
[in] rcvr Pointer to receiving object (observer)
[in] data Pointer to data object

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