NoOpEventTranslator Class Reference#include <EventTranslator.h>
Inheritance diagram for NoOpEventTranslator:
[legend]List of all members.
Detailed Description
For completeness, if you want to have events be piped directly to the local erouter instead having to be encoded and decoded.
Unfortunately, this still entails a memory copy of the event since we have to make a new event for posting to the event router. We could avoid this if events were reference counted or if there was a way to direct the EventRouter not to free the event after processing.
Beware of subscribing this class as a listener to the same EventRouter that it is sending to -- could cause infinite recursion
Definition at line 96 of file EventTranslator.h.
|
Public Member Functions |
| NoOpEventTranslator (EventRouter &er) |
| constructor
|
virtual void | encodeEvent (const EventBase &event) |
| Call this with events which should be forwarded to other processes.
|
Protected Member Functions |
virtual char * | bufferRequest (unsigned int) |
| should never be called, only included to satisfy interface
|
virtual void | post (const char *, unsigned int) |
| should never be called, only included to satisfy interface
|
Protected Attributes |
EventRouter & | evtRouter |
| the EventRouter to send events to
|
Constructor & Destructor Documentation
NoOpEventTranslator::NoOpEventTranslator |
( |
EventRouter & |
er |
) |
[inline, explicit] |
|
Member Function Documentation
virtual char* NoOpEventTranslator::bufferRequest |
( |
unsigned int |
|
) |
[inline, protected, virtual] |
|
void NoOpEventTranslator::encodeEvent |
( |
const EventBase & |
event |
) |
[virtual] |
|
virtual void NoOpEventTranslator::post |
( |
const char * |
, |
|
|
unsigned int |
|
|
) |
[inline, protected, virtual] |
|
Member Data Documentation
The documentation for this class was generated from the following files:
|