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 66 of file robot_status_message.h.
Default constructor.
This method creates an empty message.
Definition at line 54 of file robot_status_message.cpp.
Destructor.
Definition at line 59 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 109 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 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 81 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 87 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 93 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 109 of file robot_status_message.cpp.
Definition at line 114 of file robot_status_message.h.