Public Member Functions
industrial::ping_message::PingMessage Class Reference

Class encapsulated ping message generation methods (either to or from a SimpleMessage type. More...

#include <ping_message.h>

Inheritance diagram for industrial::ping_message::PingMessage:
Inheritance graph
[legend]

List of all members.

Public Member Functions

unsigned int byteLength ()
 Virtual method returns the object size when packed into a ByteArray.
bool init (industrial::simple_message::SimpleMessage &msg)
 Initializes message from a simple message.
void init ()
 Initializes a new ping message.
bool load (industrial::byte_array::ByteArray *buffer)
 Virtual method for loading an object into a ByteArray.
 PingMessage (void)
 Default constructor.
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.
bool unload (industrial::byte_array::ByteArray *buffer)
 Virtual method for unloading an object from a ByteArray.
 ~PingMessage (void)
 Destructor.

Detailed Description

Class encapsulated ping message generation methods (either to or from a SimpleMessage type.

THIS CLASS IS NOT THREAD-SAFE

Definition at line 66 of file ping_message.h.


Constructor & Destructor Documentation

Default constructor.

This method creates an empty byte ping message.

Definition at line 53 of file ping_message.cpp.

Destructor.

Definition at line 58 of file ping_message.cpp.


Member Function Documentation

unsigned int industrial::ping_message::PingMessage::byteLength ( ) [inline, virtual]

Virtual method returns the object size when packed into a ByteArray.

Returns:
object size (in bytes)

Implements industrial::simple_serialize::SimpleSerialize.

Definition at line 110 of file ping_message.h.

Initializes message from a simple message.

Returns:
true if message successfully initialized, otherwise false

Implements industrial::typed_message::TypedMessage.

Definition at line 64 of file ping_message.cpp.

Initializes a new ping message.

Implements industrial::typed_message::TypedMessage.

Definition at line 83 of file ping_message.cpp.

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

Parameters:
bufferpointer to ByteArray
Returns:
true on success, false otherwise (buffer not large enough)

Implements industrial::simple_serialize::SimpleSerialize.

Definition at line 108 of file ping_message.h.

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 102 of file ping_message.h.

Virtual method for unloading an object from a ByteArray.

This method should unload all the required data to reconstruct the class object (in place)

Parameters:
bufferpointer to ByteArray
Returns:
true on success, false otherwise (buffer not large enough)

Implements industrial::simple_serialize::SimpleSerialize.

Definition at line 109 of file ping_message.h.


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


simple_message
Author(s): Shaun Edwards
autogenerated on Mon Oct 6 2014 00:54:18