This message is sent when an event is triggered. It includes the Event ID and a sequence number to allow the client to keep track of event processing.
More...
#include <event.h>
List of all members.
Detailed Description
This message is sent when an event is triggered. It includes the Event ID and a sequence number to allow the client to keep track of event processing.
Definition at line 56 of file event.h.
Constructor & Destructor Documentation
Constructor.
- Parameters:
-
[in] | src | Source ID of message sender. |
[in] | dest | Destination ID of message. |
Definition at line 53 of file event.cpp.
Event::Event |
( |
const Event & |
message ) |
|
Copy constructor.
Definition at line 65 of file event.cpp.
Member Function Documentation
void Event::ClearMessageBody |
( |
) |
[virtual] |
virtual Message* JAUS::Event::Clone |
( |
) |
const [inline, virtual] |
Byte JAUS::Event::GetEventID |
( |
) |
const [inline] |
virtual UShort JAUS::Event::GetMessageCodeOfResponse |
( |
) |
const [inline, virtual] |
virtual std::string JAUS::Event::GetMessageName |
( |
) |
const [inline, virtual] |
virtual UInt JAUS::Event::GetPresenceVector |
( |
) |
const [inline, virtual] |
virtual UInt JAUS::Event::GetPresenceVectorMask |
( |
) |
const [inline, virtual] |
virtual UInt JAUS::Event::GetPresenceVectorSize |
( |
) |
const [inline, virtual] |
const Packet* JAUS::Event::GetReportMessage |
( |
) |
const [inline] |
UShort JAUS::Event::GetReportMessageCode |
( |
) |
const [inline] |
Byte JAUS::Event::GetSequenceNumber |
( |
) |
const [inline] |
virtual bool JAUS::Event::IsCommand |
( |
) |
const [inline, virtual] |
bool Event::IsLargeDataSet |
( |
const unsigned int |
maxPayloadSize ) |
const [virtual] |
- Returns:
- True if the contents of the message will be larger than maximum payload size, otherwise false.
Implements JAUS::Message.
Definition at line 202 of file event.cpp.
Event & Event::operator= |
( |
const Event & |
message ) |
|
int Event::ReadMessageBody |
( |
const Packet & |
packet ) |
[virtual] |
Reads message payload from the packet.
Message contents are read from the packet following the JAUS standard.
- Parameters:
-
[in] | packet | Packet containing message payload data to read. |
- Returns:
- -1 on error, otherwise number of bytes written.
Implements JAUS::Message.
Definition at line 162 of file event.cpp.
void JAUS::Event::SetEventID |
( |
const Byte |
id ) |
[inline] |
bool Event::SetReportMessage |
( |
const Message * |
reportMessage ) |
|
Sets the report message that the Event has been triggered by.
- Parameters:
-
[in] | reportMessage | Pointer to a Report message to use for serialization of message data. |
- Returns:
- True if set, false on failure.
Definition at line 93 of file event.cpp.
bool Event::SetReportMessage |
( |
const UShort |
messageCode, |
|
|
const Packet & |
reportPayload |
|
) |
| |
Sets the report message that the Event has been triggered by.
- Parameters:
-
[in] | messageCode | The report message type. |
[in] | reportPayload | Payload data for the Report. |
- Returns:
- True if set, false on failure.
Definition at line 114 of file event.cpp.
void JAUS::Event::SetSequenceNumber |
( |
const Byte |
number ) |
[inline] |
int Event::WriteMessageBody |
( |
Packet & |
packet ) |
const [virtual] |
Writes message payload to the packet.
Message contents are written to the packet following the JAUS standard.
- Parameters:
-
[out] | packet | Packet to write payload to. |
- Returns:
- -1 on error, otherwise number of bytes written.
Implements JAUS::Message.
Definition at line 133 of file event.cpp.
Member Data Documentation
Messge code for the Report Message specifying type of payload.
Definition at line 85 of file event.h.
Contents of the report message.
Definition at line 86 of file event.h.
The documentation for this class was generated from the following files:
- jaus++/2.0/include/jaus/core/events/event.h
- jaus++/2.0/src/jaus/core/events/event.cpp