#include <CLocationEvent.h>
Inheritance diagram for CLocationEvent< T >:
Public Member Functions | |
CLocationEvent (volatile T *Location, CPointerPredicate< T > &pred) | |
CLocationEvent (const char *pName, volatile T *Location, CPointerPredicate< T > &pred) | |
CLocationEvent (const STD(string)&rName, volatile T *Location, CPointerPredicate< T > &pred) | |
~CLocationEvent () | |
CLocationMonitor< T > & | getMonitor () |
CLocationReactor< T > & | getReactor () |
CPointerPredicate< T > & | getPredicate () |
volatile T * | getPointer () |
virtual void | OnLocationChanged (T newValue) |
virtual void | OnTimeout () |
virtual | STD (string) DescribeSelf() |
template<class T> | |
CLocationEvent (const string &rName, volatile T *Location, CPointerPredicate< T > &pred) | |
Protected Member Functions | |
virtual int | operator() (int nargs, char **ppargs) |
Private Member Functions | |
template<class U> | |
CLocationEvent (const CLocationEvent< U > &rhs) | |
template<class U> | |
CLocationEvent & | operator= (const CLocationEvent< U > &rhs) |
template<class U> | |
int | operator== (const CLocationEvent< U > &rhs) |
Private Attributes | |
CPointerPredicate< T > & | m_rPredicate |
CLocationMonitor< T > & | m_rMonitor |
Monitor which polls for event. | |
CLocationReactor< T > & | m_rReactor |
Reactor to the event when it fires. |
This class must be subclassed with operator() filled in. Note that information sufficent to start a location monitor is passed in at construction time.. this is an abstract,templated class.
Definition at line 332 of file CLocationEvent.h.
|
Constructor: Construct an anonymous location monitor event. To construct a location event requires:
Definition at line 364 of file CLocationEvent.cpp. References CLocationEvent< T >::getMonitor(), CLocationEvent< T >::getReactor(), CLocationEvent< T >::m_rMonitor, CLocationEvent< T >::m_rPredicate, and CLocationEvent< T >::m_rReactor. |
|
Constructs a named location monitor event using a char* as the location monitor's name.
|
|
|
|
Destructor: |
|
|
|
Constructs a CLocationEvent whose name is given by an STL String:
|
|
< Allow monitor to be manipulated. Reimplemented from CEvent. Definition at line 384 of file CLocationEvent.h. Referenced by CLocationEvent< T >::CLocationEvent(). |
|
Definition at line 393 of file CLocationEvent.h. References CLocationEvent< T >::m_rMonitor. |
|
< Allow predicate to be manipulated Definition at line 390 of file CLocationEvent.h. |
|
< Allow Reactor to be manipulated. Reimplemented from CEvent. Definition at line 387 of file CLocationEvent.h. Referenced by CLocationEvent< T >::CLocationEvent(). |
|
Called whenever the predicate indicates that the location has changed in an event-worthy way. Default operation is a no-op. Normally, this class is subclassed and this member overridden.
Definition at line 426 of file CLocationEvent.cpp. |
|
Called whenever the monitor declared a timeout. The default implementation is a no-op. Normally this class is subclassed and if timeouts need to be responded to, this member is over-ridden. Definition at line 435 of file CLocationEvent.cpp. |
|
Set nice value to allow others to execute and then call CEvent::operator() Reimplemented from CEvent. Definition at line 445 of file CLocationEvent.cpp. References CEvent::operator()(). |
|
|
|
|
|
The name of the object Reimplemented from CEvent. |
|
Monitor which polls for event.
Reimplemented from CEvent. Definition at line 336 of file CLocationEvent.h. Referenced by CLocationEvent< T >::CLocationEvent(), and CLocationEvent< T >::getPointer(). |
|
Definition at line 335 of file CLocationEvent.h. Referenced by CLocationEvent< T >::CLocationEvent(). |
|
Reactor to the event when it fires.
Reimplemented from CEvent. Definition at line 337 of file CLocationEvent.h. Referenced by CLocationEvent< T >::CLocationEvent(). |