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. | |
bool | init (industrial::simple_message::SimpleMessage &msg) |
Initializes message from a simple message. | |
void | init (industrial::robot_status::RobotStatus &status) |
Initializes message from a robot status structure. | |
void | init () |
Initializes a new robot status message. | |
bool | load (industrial::byte_array::ByteArray *buffer) |
Virtual method for loading an object into a ByteArray. | |
RobotStatusMessage (void) | |
Default constructor. | |
bool | unload (industrial::byte_array::ByteArray *buffer) |
Virtual method for unloading an object from a ByteArray. | |
~RobotStatusMessage (void) | |
Destructor. | |
Public Attributes | |
industrial::robot_status::RobotStatus | status_ |
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 68 of file robot_status_message.h.
Default constructor.
This method creates an empty message.
Definition at line 56 of file robot_status_message.cpp.
Destructor.
Definition at line 61 of file robot_status_message.cpp.
unsigned int industrial::robot_status_message::RobotStatusMessage::byteLength | ( | ) | [inline, virtual] |
Virtual method returns the object size when packed into a ByteArray.
Implements industrial::simple_serialize::SimpleSerialize.
Definition at line 111 of file robot_status_message.h.
bool industrial::robot_status_message::RobotStatusMessage::init | ( | industrial::simple_message::SimpleMessage & | msg | ) | [virtual] |
Initializes message from a simple message.
simple | message to construct from |
Implements industrial::typed_message::TypedMessage.
Definition at line 66 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 83 of file robot_status_message.cpp.
void industrial::robot_status_message::RobotStatusMessage::init | ( | ) | [virtual] |
Initializes a new robot status message.
Implements industrial::typed_message::TypedMessage.
Definition at line 89 of file robot_status_message.cpp.
bool industrial::robot_status_message::RobotStatusMessage::load | ( | industrial::byte_array::ByteArray * | buffer | ) | [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 95 of file robot_status_message.cpp.
bool industrial::robot_status_message::RobotStatusMessage::unload | ( | industrial::byte_array::ByteArray * | buffer | ) | [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 111 of file robot_status_message.cpp.
Definition at line 116 of file robot_status_message.h.