Class encapsulated robot status message generation methods (either to or from a industrial::simple_message::SimpleMessage type. More...
#include <robot_status_message.h>
Public Member Functions | |
unsigned int | byteLength () |
Virtual method returns the object size when packed into a ByteArray. More... | |
bool | init (industrial::simple_message::SimpleMessage &msg) |
Initializes message from a simple message. More... | |
void | init (industrial::robot_status::RobotStatus &status) |
Initializes message from a robot status structure. More... | |
void | init () |
Initializes a new robot status message. More... | |
bool | load (industrial::byte_array::ByteArray *buffer) |
Virtual method for loading an object into a ByteArray. More... | |
RobotStatusMessage (void) | |
Default constructor. More... | |
bool | unload (industrial::byte_array::ByteArray *buffer) |
Virtual method for unloading an object from a ByteArray. More... | |
~RobotStatusMessage (void) | |
Destructor. More... | |
Public Attributes | |
industrial::robot_status::RobotStatus | status_ |
Additional Inherited Members |
Class encapsulated robot status message generation methods (either to or from a industrial::simple_message::SimpleMessage type.
This message simply wraps the industrial::robot_status::RobotStatus data type. The data portion of this typed message matches RobotStatus.
THIS CLASS IS NOT THREAD-SAFE
Definition at line 66 of file robot_status_message.h.
industrial::robot_status_message::RobotStatusMessage::RobotStatusMessage | ( | void | ) |
Default constructor.
This method creates an empty message.
Definition at line 54 of file robot_status_message.cpp.
industrial::robot_status_message::RobotStatusMessage::~RobotStatusMessage | ( | void | ) |
Destructor.
Definition at line 59 of file robot_status_message.cpp.
|
inlinevirtual |
Virtual method returns the object size when packed into a ByteArray.
Implements industrial::simple_serialize::SimpleSerialize.
Definition at line 109 of file robot_status_message.h.
|
virtual |
Initializes message from a simple message.
simple | message to construct from |
Implements industrial::typed_message::TypedMessage.
Definition at line 64 of file robot_status_message.cpp.
void industrial::robot_status_message::RobotStatusMessage::init | ( | industrial::robot_status::RobotStatus & | status | ) |
Initializes message from a robot status structure.
status | strcutre to initialize from |
Definition at line 82 of file robot_status_message.cpp.
|
virtual |
Initializes a new robot status message.
Implements industrial::typed_message::TypedMessage.
Definition at line 88 of file robot_status_message.cpp.
|
virtual |
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 94 of file robot_status_message.cpp.
|
virtual |
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 110 of file robot_status_message.cpp.
industrial::robot_status::RobotStatus industrial::robot_status_message::RobotStatusMessage::status_ |
Definition at line 115 of file robot_status_message.h.