Class encapsulated read single io reply data. These messages are sent by the FS100 controller in response to ReadSingleIO messages. More...
#include <motoman_read_single_io_reply.h>
Class encapsulated read single io reply data. These messages are sent by the FS100 controller in response to ReadSingleIO messages.
The byte representation of a read single io reply is as follows (in order lowest index to highest). The standard sizes are given, but can change based on type sizes:
member: type size value (industrial::shared_types::shared_int) 4 bytes result_code (industrial::shared_types::shared_int) 4 bytes
THIS CLASS IS NOT THREAD-SAFE
Definition at line 87 of file motoman_read_single_io_reply.h.
Default constructor.
This method creates empty data.
Definition at line 59 of file motoman_read_single_io_reply.cpp.
Destructor.
Definition at line 63 of file motoman_read_single_io_reply.cpp.
unsigned int motoman::simple_message::io_ctrl_reply::ReadSingleIOReply::byteLength | ( | ) | [inline, virtual] |
Implements industrial::simple_serialize::SimpleSerialize.
Definition at line 185 of file motoman_read_single_io_reply.h.
Copies the passed in value.
src | (value to copy) |
Definition at line 92 of file motoman_read_single_io_reply.cpp.
industrial::shared_types::shared_int motoman::simple_message::io_ctrl_reply::ReadSingleIOReply::getResultCode | ( | ) | const [inline] |
Returns the result code.
Definition at line 151 of file motoman_read_single_io_reply.h.
std::string motoman::simple_message::io_ctrl_reply::ReadSingleIOReply::getResultString | ( | industrial::shared_types::shared_int | code | ) | [static] |
Definition at line 79 of file motoman_read_single_io_reply.cpp.
std::string motoman::simple_message::io_ctrl_reply::ReadSingleIOReply::getResultString | ( | ) | const [inline] |
Definition at line 162 of file motoman_read_single_io_reply.h.
Initializes a empty motion control reply.
Definition at line 67 of file motoman_read_single_io_reply.cpp.
void motoman::simple_message::io_ctrl_reply::ReadSingleIOReply::init | ( | industrial::shared_types::shared_int | value, |
ReadSingleIOReplyResult | result_code | ||
) |
Initializes a complete read single io reply.
Definition at line 73 of file motoman_read_single_io_reply.cpp.
bool motoman::simple_message::io_ctrl_reply::ReadSingleIOReply::load | ( | industrial::byte_array::ByteArray * | buffer | ) | [virtual] |
Implements industrial::simple_serialize::SimpleSerialize.
Definition at line 106 of file motoman_read_single_io_reply.cpp.
bool motoman::simple_message::io_ctrl_reply::ReadSingleIOReply::operator== | ( | ReadSingleIOReply & | rhs | ) |
== operator implementation
Definition at line 98 of file motoman_read_single_io_reply.cpp.
void motoman::simple_message::io_ctrl_reply::ReadSingleIOReply::setResultCode | ( | industrial::shared_types::shared_int | result_code | ) | [inline] |
Sets the result code.
result | code |
Definition at line 141 of file motoman_read_single_io_reply.h.
void motoman::simple_message::io_ctrl_reply::ReadSingleIOReply::setValue | ( | industrial::shared_types::shared_int | value | ) | [inline] |
Sets value.
value | The value |
Definition at line 121 of file motoman_read_single_io_reply.h.
bool motoman::simple_message::io_ctrl_reply::ReadSingleIOReply::unload | ( | industrial::byte_array::ByteArray * | buffer | ) | [virtual] |
Implements industrial::simple_serialize::SimpleSerialize.
Definition at line 126 of file motoman_read_single_io_reply.cpp.
industrial::shared_types::shared_int motoman::simple_message::io_ctrl_reply::ReadSingleIOReply::result_code_ [private] |
The result code.
Definition at line 199 of file motoman_read_single_io_reply.h.
industrial::shared_types::shared_int motoman::simple_message::io_ctrl_reply::ReadSingleIOReply::value_ [private] |
The value.
Definition at line 194 of file motoman_read_single_io_reply.h.