Class encapsulated ping message generation methods (either to or from a SimpleMessage type. More...
#include <ping_message.h>
Public Member Functions | |
unsigned int | byteLength () |
Virtual method returns the object size when packed into a ByteArray. More... | |
void | init () |
Initializes a new ping message. More... | |
bool | init (industrial::simple_message::SimpleMessage &msg) |
Initializes message from a simple message. More... | |
bool | load (industrial::byte_array::ByteArray *buffer) |
Virtual method for loading an object into a ByteArray. More... | |
PingMessage (void) | |
Default constructor. More... | |
bool | toTopic (industrial::simple_message::SimpleMessage &msg) |
The ping message overrides the base method toTopic to always return false. A ping cannot be sent as a topic. More... | |
bool | unload (industrial::byte_array::ByteArray *buffer) |
Virtual method for unloading an object from a ByteArray. More... | |
~PingMessage (void) | |
Destructor. More... | |
Additional Inherited Members |
Class encapsulated ping message generation methods (either to or from a SimpleMessage type.
THIS CLASS IS NOT THREAD-SAFE
Definition at line 60 of file ping_message.h.
industrial::ping_message::PingMessage::PingMessage | ( | void | ) |
Default constructor.
This method creates an empty byte ping message.
Definition at line 50 of file ping_message.cpp.
industrial::ping_message::PingMessage::~PingMessage | ( | void | ) |
Destructor.
Definition at line 55 of file ping_message.cpp.
|
inlinevirtual |
Virtual method returns the object size when packed into a ByteArray.
Implements industrial::simple_serialize::SimpleSerialize.
Definition at line 104 of file ping_message.h.
|
virtual |
Initializes a new ping message.
Implements industrial::typed_message::TypedMessage.
Definition at line 80 of file ping_message.cpp.
|
virtual |
Initializes message from a simple message.
Implements industrial::typed_message::TypedMessage.
Definition at line 61 of file ping_message.cpp.
|
inlinevirtual |
Virtual method for loading an object into a ByteArray.
This method should load all the required data to reconstruct the class object into the buffer
buffer | pointer to ByteArray |
Implements industrial::simple_serialize::SimpleSerialize.
Definition at line 102 of file ping_message.h.
|
inlinevirtual |
The ping message overrides the base method toTopic to always return false. A ping cannot be sent as a topic.
Reimplemented from industrial::typed_message::TypedMessage.
Definition at line 96 of file ping_message.h.
|
inlinevirtual |
Virtual method for unloading an object from a ByteArray.
This method should unload all the required data to reconstruct the class object (in place)
buffer | pointer to ByteArray |
Implements industrial::simple_serialize::SimpleSerialize.
Definition at line 103 of file ping_message.h.