![]() |
4S Device Communication Module Collection
Version 0.6-SNAPSHOT
Full documentation of the modules in the 4SDC collection (aimed at 4SDC module developers)
|
|
The BaseMsg class is the base class for all messages. More...
#include <basemsg.h>
Public Member Functions | |
void | setOriginAddr (MsgAddr &addr) |
Set the origin address of the message. More... | |
MsgAddr & | getOriginAddr (void) |
Get/return the origin address of the message. More... | |
const MsgAddr & | getOriginAddr (void) const |
Private Attributes | |
MsgAddr | origin |
Adress of the sender. | |
Friends | |
class | MsgQueue |
All messages sent with the message system must inherit from this class, it contains information to the receiver of who sent the message, so replies can be directed back to the sender.
FSYS::MsgAddr & FSYS::BaseMsg::getOriginAddr | ( | void | ) |
The Origin address of a message, is the address of the instance that sent the message orginally.
void FSYS::BaseMsg::setOriginAddr | ( | MsgAddr & | addr | ) |
The Origin address of a message, is the address of the instance that sent the message orginally.
addr | The origin address of this object |