| Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
EventTranslator Class Reference#include <EventTranslator.h>
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.
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 50 of file EventTranslator.cc. Call this with events which should be forwarded to other processes.
Reimplemented in NoOpEventTranslator, and IPCEventTranslator. Definition at line 28 of file EventTranslator.cc. Referenced by IPCEventTranslator::encodeEvent(), MotionCommand::postEvent(), processEvent(), and trapEvent().
Called by encodeEvent() after serialization is complete for communication to other processes.
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.
template<class EB>
This should be called during initialization to register all EventBase subclasses.
Definition at line 44 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.
The documentation for this class was generated from the following files: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Tekkotsu v3.0 |
Generated Fri May 11 20:08:06 2007 by Doxygen 1.4.7 |