#include <Receiver.h>
Inheritance diagram for ReceiverList:
Public Member Functions | |
ReceiverList (PlatformProcess *process, const char *receiverName, bool blocking) | |
The constructor. | |
ReceiverList *& | getFirst () |
Returns the begin of the list of all receivers. | |
ReceiverList * | getNext () const |
Returns the next receiver in the list. | |
const char * | getName () const |
Returns the Aperios connection name of the receiver. | |
virtual int | fillEntryTable (ObjectEntry *entryTable, int id)=0 |
Fills the Aperios entry table for global functions. | |
bool | receivedNew () const |
Returns whether a new package was received in the current frame. | |
void | finishFrame () |
The function must be called to finish the current frame. | |
Static Public Member Functions | |
void | setBlockingId (int id, bool block=true) |
The functions sets or resets a bit in the blocking mask. | |
void | setEventId (int id) |
The function is called when an event was received. | |
Protected Attributes | |
int | eventId |
The id of the current receiver in the range [0..30]. | |
bool | blocking |
Stores whether this is a blocking receiver. | |
Private Attributes | |
PlatformProcess * | process |
The process this receiver is associated with. | |
ReceiverList * | next |
The successor of the current receiver. | |
char | name [NAME_LENGTH_MAX] |
The name of a receiver without the module's name. |
A receiver is an object that reads packages from Aperios queues. The class manages a global list of all receivers in an Aperios process.
Definition at line 21 of file Receiver.h.
|
The constructor.
Definition at line 7 of file Receiver.cpp. References getFirst(), and next. |
Here is the call graph for this function:
|
Returns the begin of the list of all receivers.
Definition at line 25 of file Receiver.cpp. References PlatformProcess::getFirstReceiver(). Referenced by finishFrame(), and ReceiverList(). |
Here is the call graph for this function:
|
Returns the next receiver in the list.
Definition at line 52 of file Receiver.h. References next. Referenced by ProcessCreator< T >::DoInit(), ProcessCreator< T >::DoStart(), ProcessCreator< T >::DoStop(), finishFrame(), and ProcessBase::init(). |
|
Returns the Aperios connection name of the receiver.
Definition at line 58 of file Receiver.h. Referenced by ProcessCreator< T >::DoInit(). |
|
Fills the Aperios entry table for global functions. The function will write two entries into the table.
Implemented in Receiver< T >. Referenced by ProcessBase::init(). |
|
Returns whether a new package was received in the current frame. This is always true if this is a blocking receiver.
Definition at line 30 of file Receiver.cpp. References eventId, and ProcessBase::getEventMask(). Referenced by finishFrame(). |
Here is the call graph for this function:
|
The function must be called to finish the current frame.
Definition at line 35 of file Receiver.cpp. References blocking, eventId, getFirst(), getNext(), receivedNew(), and ProcessBase::setBlockingId(). |
Here is the call graph for this function:
|
The functions sets or resets a bit in the blocking mask. After a bit is set in the blocking mask for a certain sender or receiver, a new frame will not be started before this sender or receiver received an event.
Definition at line 45 of file Receiver.cpp. References ProcessBase::setBlockingId(). Referenced by Receiver< T >::fillEntryTable(). |
Here is the call graph for this function:
|
The function is called when an event was received. If this was the last event the process was waiting for, the next frame is started, i.e. NextFrame() is called.
Definition at line 50 of file Receiver.cpp. References ProcessBase::setEventId(). Referenced by Receiver< T >::handleMessage(). |
Here is the call graph for this function:
|
The process this receiver is associated with.
Definition at line 24 of file Receiver.h. |
|
The successor of the current receiver.
Definition at line 25 of file Receiver.h. Referenced by getNext(), and ReceiverList(). |
|
The name of a receiver without the module's name.
Definition at line 26 of file Receiver.h. |
|
The id of the current receiver in the range [0..30].
Definition at line 29 of file Receiver.h. Referenced by finishFrame(), and receivedNew(). |
|
Stores whether this is a blocking receiver.
Definition at line 30 of file Receiver.h. Referenced by finishFrame(). |