#include <InMessage.h>
Collaboration diagram for InMessage:
Public Member Functions | |
InMessage (MessageQueueBase &queue) | |
Constructor. | |
unsigned long | getTimeStamp () const |
returns the time stamp of the current message | |
MessageID | getMessageID () const |
returns the message id of the current message | |
int | getMessageSize () const |
returns the message size of the current message | |
Player::teamColor | getTeamColor () const |
returns the team color of the robot that sent this message. | |
Player::playerNumber | getPlayerNumber () const |
returns the player number of the robot that sent this message. | |
int | getRobotNumber () const |
returns the robot number of the robot that sent this message. | |
bool | getMessageWasSentFromAPhysicalRobot () const |
returns whether the message was sent from a physical robot. | |
void | resetReadPosition () |
sets the read position to 0 so that the message can be read again | |
Public Attributes | |
InBinaryMessage | bin |
An interface for reading binary messages from the queue. | |
InTextMessage | text |
An interface for reading text messages from the queue. | |
InConfigMessage | config |
An interface for reading config-file-style text messages from the queue. | |
Protected Member Functions | |
const char * | getData () const |
Gives a direct read access to the message. | |
Private Attributes | |
MessageQueueBase & | queue |
The message queue where the messages are read from. | |
Friends | |
class | MessageQueue |
gives the class MessageQueue access to protected members | |
void | operator>> (InMessage &message, MessageQueue &queue) |
gives the operator that copies a InMessage to another queue access to protected members | |
Out & | operator<< (Out &stream, const MessageQueue &messageQueue) |
Gives the stream operator access to protected members. |
Use the bin, text or config member for formated reading from a message queue.
Definition at line 124 of file InMessage.h.
|
Constructor.
Definition at line 66 of file InMessage.cpp. |
|
returns the time stamp of the current message
Definition at line 71 of file InMessage.cpp. References MessageQueueBase::getTimeStamp(). Referenced by operator<<(), and operator>>(). |
Here is the call graph for this function:
|
Here is the call graph for this function:
|
returns the message size of the current message
Definition at line 81 of file InMessage.cpp. References MessageQueueBase::getMessageSize(). Referenced by MessageQueue::getStreamedSize(), operator<<(), and operator>>(). |
Here is the call graph for this function:
|
returns the team color of the robot that sent this message. Can be undefined. Definition at line 86 of file InMessage.cpp. References MessageQueueBase::getTeamColor(). Referenced by operator<<(), and operator>>(). |
Here is the call graph for this function:
|
returns the player number of the robot that sent this message. Can be undefined. Definition at line 91 of file InMessage.cpp. References MessageQueueBase::getPlayerNumber(). Referenced by operator<<(), and operator>>(). |
Here is the call graph for this function:
|
returns the robot number of the robot that sent this message.
Definition at line 96 of file InMessage.cpp. References MessageQueueBase::getPlayerNumber(), and MessageQueueBase::getTeamColor(). |
Here is the call graph for this function:
|
returns whether the message was sent from a physical robot. This is true, when the message was sent from the Aperios/OpenR platform, otherwise false. Definition at line 102 of file InMessage.cpp. References MessageQueueBase::getMessageWasSentFromAPhysicalRobot(). Referenced by operator<<(), and operator>>(). |
Here is the call graph for this function:
|
sets the read position to 0 so that the message can be read again
Definition at line 107 of file InMessage.cpp. References config, InText::reset(), MessageQueueBase::resetReadPosition(), and text. Referenced by ModuleHandler::handleMessage(), and GT2004BallLocator::handleMessage(). |
Here is the call graph for this function:
|
Gives a direct read access to the message.
Definition at line 114 of file InMessage.cpp. References MessageQueueBase::getData(). Referenced by operator<<(), and operator>>(). |
Here is the call graph for this function:
|
gives the class MessageQueue access to protected members
Definition at line 187 of file InMessage.h. |
|
gives the operator that copies a InMessage to another queue access to protected members
Definition at line 180 of file MessageQueue.cpp. |
|
Gives the stream operator access to protected members.
Definition at line 153 of file MessageQueue.cpp. |
|
The message queue where the messages are read from. Note that the selection which message is read is not done by InMessageQueue but by MessageQueue itself. Definition at line 131 of file InMessage.h. |
|
|
An interface for reading text messages from the queue.
Definition at line 138 of file InMessage.h. Referenced by MessageQueue::handleAllMessages(), KickSelectionSymbols::handleMessage(), MessageQueue::handleSpecificMessages(), and resetReadPosition(). |
|
An interface for reading config-file-style text messages from the queue.
Definition at line 141 of file InMessage.h. Referenced by MessageQueue::handleAllMessages(), GTXabsl2EngineExecutor::handleMessage(), GT2003MotionNetSpecialActions::handleMessage(), MessageQueue::handleSpecificMessages(), and resetReadPosition(). |