#include <freControllerEvents.h>


Public Types | |
| typedef bool(T::* | CallEvent )(const IDPath &senderID, CallbackType callbackID, void *pData, SessionComponentCache *pSender, long threadID) |
| typedef CallbackCtrlEvent< T > | Self |
| typedef itk::SmartPointer < Self > | Pointer |
Public Member Functions | |
| freNewEventMacro (CallbackCtrlEvent, T, CallEvent) | |
| virtual const char * | GetNameOfClass () const |
| virtual bool | Execute (const IDPath &senderID, CallbackType callbackID, void *pData, SessionComponentCache *pSender, long threadID=0) |
Protected Member Functions | |
| CallbackCtrlEvent (T *pObject, CallEvent pCE) | |
Private Member Functions | |
| CallbackCtrlEvent (const Self &) | |
| void | operator= (const Self &) |
Private Attributes | |
| T * | m_Object |
| CallEvent | m_CallEvent |
Other than the EventBase this object is used by a class to pass a member function as a function pointer to allow a callback. The template T is the class, which offers the function pointer. (This difference between Event and EventBase is needed, because the call of member function always passes a hidden pointer (this-pointer), unlike a global function).
This event is used for callback based data retrieval or other situations, where a part of f.r.e.e. should get the possibility to interact or make a request.
Definition at line 203 of file freControllerEvents.h.
| typedef bool(T::* FREE::CallbackCtrlEvent< T >::CallEvent)(const IDPath &senderID, CallbackType callbackID, void *pData, SessionComponentCache *pSender, long threadID) |
Reimplemented from FREE::CallbackCtrlEventBase.
Definition at line 206 of file freControllerEvents.h.
| typedef CallbackCtrlEvent<T> FREE::CallbackCtrlEvent< T >::Self |
Reimplemented from FREE::CallbackCtrlEventBase.
Definition at line 210 of file freControllerEvents.h.
| typedef itk::SmartPointer<Self> FREE::CallbackCtrlEvent< T >::Pointer |
Reimplemented from FREE::CallbackCtrlEventBase.
Definition at line 211 of file freControllerEvents.h.
| FREE::CallbackCtrlEvent< T >::CallbackCtrlEvent | ( | const Self & | ) | [private] |
| FREE::CallbackCtrlEvent< T >::CallbackCtrlEvent | ( | T * | pObject, | |
| CallEvent | pCE | |||
| ) | [inline, protected] |
Definition at line 224 of file freControllerEvents.h.
References FREE::CallbackCtrlEvent< T >::m_CallEvent, and FREE::CallbackCtrlEvent< T >::m_Object.
| FREE::CallbackCtrlEvent< T >::freNewEventMacro | ( | CallbackCtrlEvent< T > | , | |
| T | , | |||
| CallEvent | ||||
| ) |
| virtual const char* FREE::CallbackCtrlEvent< T >::GetNameOfClass | ( | ) | const [inline, virtual] |
Reimplemented from FREE::CallbackCtrlEventBase.
Definition at line 214 of file freControllerEvents.h.
| void FREE::CallbackCtrlEvent< T >::operator= | ( | const Self & | ) | [private] |
Reimplemented from FREE::CallbackCtrlEventBase.
| virtual bool FREE::CallbackCtrlEvent< T >::Execute | ( | const IDPath & | senderID, | |
| CallbackType | callbackID, | |||
| void * | pData, | |||
| SessionComponentCache * | pSender, | |||
| long | threadID = 0 | |||
| ) | [inline, virtual] |
This Event is used for callback based data retrieval or other situations, where a controller should get the possibility to interact or make a request.
| [in] | senderID | IDPath specifying the component that is making the callback |
| [in] | callbackID | Defines the callback type and so the meaning of pData. The meaning depends on the sender of the callback, where the meaning of flag and pData are also explained. |
| [in,out] | pData | Void pointer to a data structure may be passed or requested with the callback. Meaning and use depends on the senderID and callbackID. |
| [in,out] | pSender | Pointer to the session component cache that was active when the event was executed. |
| [in] | threadID | ID of the Thread executing the event. By default this value is 0. This ID is not unique over the complete system, it should only be assumed that it is unique in the context of the sender. |
Definition at line 246 of file freControllerEvents.h.
References FREE::CallbackCtrlEvent< T >::m_CallEvent, FREE::CallbackCtrlEventBase::m_ExecutionMutex, and FREE::CallbackCtrlEvent< T >::m_Object.
T* FREE::CallbackCtrlEvent< T >::m_Object [private] |
Definition at line 214 of file freControllerEvents.h.
Referenced by FREE::CallbackCtrlEvent< T >::CallbackCtrlEvent(), and FREE::CallbackCtrlEvent< T >::Execute().
CallEvent FREE::CallbackCtrlEvent< T >::m_CallEvent [private] |
Reimplemented from FREE::CallbackCtrlEventBase.
Definition at line 218 of file freControllerEvents.h.
Referenced by FREE::CallbackCtrlEvent< T >::CallbackCtrlEvent(), and FREE::CallbackCtrlEvent< T >::Execute().
1.5.3 written by Dimitri van Heesch,
© 1997-2000