![]() |
RadarFX API Documentation
|
DtBaseMessage is the base class for all messages that can be sent between the server and the client. More...

Public Member Functions | |
| DtBaseMessage () | |
| CTOR/DTOR. | |
| virtual | ~DtBaseMessage () |
| virtual unsigned int | messageType () const |
| Get the name of the message type. | |
| virtual unsigned char * | encode () |
| Encode the message as an array of bytes and return the bytes the receiver is responsible for calling delete [] on these bytes. | |
| virtual int | messageSize () |
| this function needs to be in each derived class for decoding | |
| virtual DtBaseMessage * | clone ()=0 |
| clones this message. | |
| virtual void | setRequestorId (const std::string &requestor) |
| Assigns the requestor name of this message. | |
| virtual std::string | requestorId () |
| virtual void | setRequestId (int id) |
| Assigns the request id of this message. | |
| virtual int | requestId () |
Protected Member Functions | |
| virtual void | serialize (DtStreamWriter &writer) |
| virtual void | deserialize (DtStreamReader &reader) |
Protected Attributes | |
| unsigned int | myMessageType |
| std::string | myRequestorId |
| int | myRequestId |
DtBaseMessage is the base class for all messages that can be sent between the server and the client.
| makRadarFx::DtBaseMessage::DtBaseMessage | ( | ) |
CTOR/DTOR.
|
virtual |
|
virtual |
Get the name of the message type.
|
virtual |
Encode the message as an array of bytes and return the bytes the receiver is responsible for calling delete [] on these bytes.
|
virtual |
this function needs to be in each derived class for decoding
Get the size of the message data in bytes
Reimplemented in makRadarFx::DtSarResponse, makRadarFx::DtMmwResponse, makRadarFx::DtIsarResponse, makRadarFx::DtSarRequest, makRadarFx::DtMmwRequest, makRadarFx::DtIsarRequest, makRadarFx::DtElevationResponse, makRadarFx::DtOcclusionResponse, makRadarFx::DtEntityLocationResponse, makRadarFx::DtElevationRequest, makRadarFx::DtOcclusionRequest, makRadarFx::DtEntityListResponse, makRadarFx::DtSensorListResponse, makRadarFx::DtEntityListRequest, makRadarFx::DtEntityLocationRequest, makRadarFx::DtSensorListRequest, and makRadarFx::DtHeartbeatMessage.
|
pure virtual |
clones this message.
Caller of function is responsible for managing memory
Implemented in makRadarFx::DtSarResponse, makRadarFx::DtMmwResponse, makRadarFx::DtIsarResponse, makRadarFx::DtSarRequest, makRadarFx::DtMmwRequest, makRadarFx::DtIsarRequest, makRadarFx::DtElevationResponse, makRadarFx::DtOcclusionResponse, makRadarFx::DtEntityLocationResponse, makRadarFx::DtElevationRequest, makRadarFx::DtOcclusionRequest, makRadarFx::DtEntityListResponse, makRadarFx::DtSensorListResponse, makRadarFx::DtEntityListRequest, makRadarFx::DtEntityLocationRequest, makRadarFx::DtSensorListRequest, and makRadarFx::DtHeartbeatMessage.
|
virtual |
Assigns the requestor name of this message.
If left at "" (default) then the DtRadarFxConnector's requestor() function is used to generate a name when the message is sent
|
virtual |
|
virtual |
Assigns the request id of this message.
If left at 0 (default) then the DtRadarFxConnector's nextId() function is used to generate a request id when the message is sent
|
virtual |
|
protectedvirtual |
Reimplemented in makRadarFx::DtSarResponse, makRadarFx::DtMmwResponse, makRadarFx::DtIsarResponse, makRadarFx::DtSarRequest, makRadarFx::DtMmwRequest, makRadarFx::DtIsarRequest, makRadarFx::DtElevationResponse, makRadarFx::DtOcclusionResponse, makRadarFx::DtEntityLocationResponse, makRadarFx::DtElevationRequest, makRadarFx::DtOcclusionRequest, makRadarFx::DtEntityListResponse, makRadarFx::DtSensorListResponse, makRadarFx::DtEntityListRequest, makRadarFx::DtEntityLocationRequest, makRadarFx::DtSensorListRequest, and makRadarFx::DtHeartbeatMessage.
|
protectedvirtual |
Reimplemented in makRadarFx::DtSarResponse, makRadarFx::DtMmwResponse, makRadarFx::DtIsarResponse, makRadarFx::DtSarRequest, makRadarFx::DtMmwRequest, makRadarFx::DtIsarRequest, makRadarFx::DtElevationResponse, makRadarFx::DtOcclusionResponse, makRadarFx::DtEntityLocationResponse, makRadarFx::DtElevationRequest, makRadarFx::DtOcclusionRequest, makRadarFx::DtEntityListResponse, makRadarFx::DtSensorListResponse, makRadarFx::DtEntityListRequest, makRadarFx::DtEntityLocationRequest, makRadarFx::DtSensorListRequest, and makRadarFx::DtHeartbeatMessage.
|
protected |
|
protected |
|
protected |