#include <CLocationReactor.h>
Inheritance diagram for CLocationReactor< T >:
Public Member Functions | |
CLocationReactor () | |
CLocationReactor (const STD(string)&rName) | |
CLocationReactor (const char *pName) | |
~CLocationReactor () | |
Destructor:. | |
template<class U> | |
int | operator== (const CLocationReactor< U > &aCLocationReactor) const |
Operator== Equality Operator is allowed, but doesn't mean much. | |
virtual void | OnEvent (CEventMonitor &rEvent) |
virtual void | OnLocationChanged (CLocationMonitor< T > &rEvent, T newValue) |
Private Member Functions | |
CLocationReactor (const CLocationReactor &aCLocationReactor) | |
Copy Constructor is not allowed. | |
CLocationReactor & | operator= (const CLocationReactor &aCLocationReactor) |
Operator= Assignment Operator is not allowed. |
Definition at line 324 of file CLocationReactor.h.
|
Default Constructor: Creates a reactor with an autoassigned name. There's currently no way to know by looking at the name that this is a Location Reactor Definition at line 316 of file CLocationReactor.cpp. References CNamedObject::AppendClassInfo(). |
|
|
|
Constructor given a name in ASCIZ format.
Definition at line 337 of file CLocationReactor.cpp. References CNamedObject::AppendClassInfo(). |
|
Destructor:.
Definition at line 344 of file CLocationReactor.cpp. |
|
Copy Constructor is not allowed.
|
|
Called when an event occurs. The base class is overriddent to dynamically cast the rEvent parameter to a CLocationMonitor<T> reference, and then get the value pointed to by the pointer. Once this is done, OnLocationChanged is called. THus users of this class typically will only need to derive and override OnLocationChanged.
Reimplemented from CReactor. Definition at line 372 of file CLocationReactor.cpp. References CLocationMonitor< T >::getLocation(), and CLocationReactor< T >::OnLocationChanged(). |
|
Called when a location monitor detects a location change which satisfies its predicate. I expect that this Reactor will be used minimally by subclassing this class and overriding this function with application specific code.
Definition at line 403 of file CLocationReactor.cpp. Referenced by CLocationReactor< T >::OnEvent(). |
|
Operator= Assignment Operator is not allowed.
|
|
Operator== Equality Operator is allowed, but doesn't mean much.
Definition at line 352 of file CLocationReactor.cpp. References CReactor::operator==(). |