#include <Sender.h>
Inheritance diagram for SenderList:
Public Member Functions | |
SenderList (PlatformProcess *process, const char *senderName, bool blocking) | |
The constructor. | |
SenderList *& | getFirst () |
Returns the begin of the list of all senders. | |
SenderList * | getNext () const |
Returns the next sender in the list. | |
const char * | getName () const |
Returns the Aperios connection name of the sender. | |
virtual int | fillEntryTable (ObjectEntry *entryTable, int id)=0 |
Fills the Aperios entry table for global functions. | |
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 Member Functions | |
virtual void | sendPackage ()=0 |
The function sends a package to all receivers that requested it. | |
Protected Attributes | |
int | eventId |
The id of the current sender in the range [0..30]. | |
bool | blocking |
Stores whether this is a blocking sender. | |
Private Attributes | |
PlatformProcess * | process |
The process this sender is associated with. | |
SenderList * | next |
The successor of the current sender. | |
char | name [NAME_LENGTH_MAX] |
The name of a sender without the module's name. |
A sender is an object that sends packages to an Aperios queue. The class manages a global list of all senders in an Aperios process.
Definition at line 23 of file Sender.h.
|
The constructor.
Definition at line 8 of file Sender.cpp. References getFirst(), and next. |
Here is the call graph for this function:
|
The function sends a package to all receivers that requested it.
Implemented in SenderBase< T >, SenderBase< SoundData >, SenderBase< MessageQueue >, and SenderBase< MotorCommands >. Referenced by finishFrame(). |
|
Returns the begin of the list of all senders.
Definition at line 26 of file Sender.cpp. References PlatformProcess::getFirstSender(). Referenced by finishFrame(), and SenderList(). |
Here is the call graph for this function:
|
Returns the next sender in the list.
Definition at line 59 of file Sender.h. Referenced by ProcessCreator< T >::DoInit(), finishFrame(), and ProcessBase::init(). |
|
Returns the Aperios connection name of the sender.
Definition at line 65 of file Sender.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 SenderBase< T >, SenderBase< SoundData >, SenderBase< MessageQueue >, and SenderBase< MotorCommands >. Referenced by ProcessBase::init(). |
|
The function must be called to finish the current frame.
Definition at line 31 of file Sender.cpp. References getFirst(), getNext(), and sendPackage(). Referenced by ProcessCreator< T >::processNextFrame(). |
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 37 of file Sender.cpp. References ProcessBase::setBlockingId(). Referenced by SenderBase< MotorCommands >::fillEntryTable(), and SenderBase< MotorCommands >::send(). |
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 42 of file Sender.cpp. References ProcessBase::setEventId(). Referenced by SenderBase< MotorCommands >::handleMessage(). |
Here is the call graph for this function:
|
The process this sender is associated with.
|
|
The successor of the current sender.
Definition at line 27 of file Sender.h. Referenced by SenderList(). |
|
The name of a sender without the module's name.
|
|
The id of the current sender in the range [0..30].
|
|
Stores whether this is a blocking sender.
|