Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
EventTranslator Class ReferenceEventTranslator receives events from EventRouters in non-Main processes and adds them into a SharedQueue for Main to pick up. More...
Inheritance diagram for EventTranslator:
Detailed DescriptionEventTranslator receives events from EventRouters in non-Main processes and adds them into a SharedQueue for Main to pick up. Definition at line 11 of file EventTranslator.h.
Constructor & Destructor Documentation
constructor Definition at line 14 of file EventTranslator.h.
destructor Definition at line 17 of file EventTranslator.h.
don't call Member Function Documentation
Called by encodeEvent() to request a buffer for serializing into, must be at least size. This buffer will then be sent to post(), which should free it (or recycle it for usage by a later bufferRequest()) Implemented in NoOpEventTranslator, and IPCEventTranslator. Referenced by encodeEvent().
Called with buffers containing incoming events which should be reconstituted.
Definition at line 43 of file EventTranslator.cc.
Call this with events which should be forwarded to other processes.
Reimplemented in NoOpEventTranslator, and IPCEventTranslator. Definition at line 17 of file EventTranslator.cc. Referenced by MotionCommand::postEvent(), processEvent(), and trapEvent().
don't call
Called by encodeEvent() after serialization is complete for communication to other processes.
You will always get this callback after each call to bufferRequest(), even in the event of an error during saving. If an error occured, the callback will receive 0 for size. Implemented in NoOpEventTranslator, and IPCEventTranslator. Referenced by encodeEvent().
Call this with events which should be forwarded to other processes (redirects to encodeEvent()). By providing an EventListener interface, you can directly register this class with an EventRouter instead of having to manually forward events (although you could do that as well) Implements EventListener. Definition at line 35 of file EventTranslator.h.
set trapRet, which can let you decide whether trapped events should be filtered or not Definition at line 42 of file EventTranslator.h.
Call this with events which should be forwarded to other processes (redirects to encodeEvent()). By providing an EventTrapper interface, you can directly register this class with an EventRouter instead of having to manually forward events (although you could do that as well)
Implements EventTrapper. Definition at line 29 of file EventTranslator.h. Member Data Documentation
The value which trapEvent() should return. Definition at line 63 of file EventTranslator.h. Referenced by setTrapEventValue(), and trapEvent(). The documentation for this class was generated from the following files: |
Tekkotsu v5.1CVS |
Generated Mon May 9 04:59:07 2016 by Doxygen 1.6.3 |