4S Device Communication Module Collection  Version 0.6-SNAPSHOT
Full documentation of the modules in the 4SDC collection (aimed at 4SDC module developers)
FSYS::BaseMsg Class Reference

The BaseMsg class is the base class for all messages. More...

#include <basemsg.h>

+ Inheritance diagram for FSYS::BaseMsg:
+ Collaboration diagram for FSYS::BaseMsg:

Public Member Functions

void setOriginAddr (MsgAddr &addr)
 Set the origin address of the message. More...
 
MsgAddrgetOriginAddr (void)
 Get/return the origin address of the message. More...
 
const MsgAddrgetOriginAddr (void) const
 

Private Attributes

MsgAddr origin
 Adress of the sender.
 

Friends

class MsgQueue
 

Detailed Description

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.

Member Function Documentation

FSYS::MsgAddr & FSYS::BaseMsg::getOriginAddr ( void  )

The Origin address of a message, is the address of the instance that sent the message orginally.

Returns
The origin address of this message

+ Here is the caller graph for this function:

void FSYS::BaseMsg::setOriginAddr ( MsgAddr addr)

The Origin address of a message, is the address of the instance that sent the message orginally.

Parameters
addrThe origin address of this object

The documentation for this class was generated from the following files: