Class encapsulated write single io reply data. These messages are sent by the FS100 controller in response to WriteSingleIO messages. More...
#include <motoman_write_single_io_reply.h>
Public Member Functions | |
unsigned int | byteLength () |
void | copyFrom (WriteSingleIOReply &src) |
Copies the passed in value. More... | |
industrial::shared_types::shared_int | getResultCode () const |
Returns the result code. More... | |
std::string | getResultString () const |
void | init () |
Initializes a empty motion control reply. More... | |
void | init (WriteSingleIOReplyResultCode result_code) |
Initializes a complete read single io reply. More... | |
bool | load (industrial::byte_array::ByteArray *buffer) |
bool | operator== (WriteSingleIOReply &rhs) |
== operator implementation More... | |
void | setResultCode (industrial::shared_types::shared_int result_code) |
Sets the result code. More... | |
bool | unload (industrial::byte_array::ByteArray *buffer) |
WriteSingleIOReply (void) | |
Default constructor. More... | |
~WriteSingleIOReply (void) | |
Destructor. More... | |
Static Public Member Functions | |
static std::string | getResultString (industrial::shared_types::shared_int code) |
Private Attributes | |
industrial::shared_types::shared_int | result_code_ |
The result code. More... | |
Class encapsulated write single io reply data. These messages are sent by the FS100 controller in response to WriteSingleIO messages.
The byte representation of a write 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 result_code (industrial::shared_types::shared_int) 4 bytes
THIS CLASS IS NOT THREAD-SAFE
Definition at line 90 of file motoman_write_single_io_reply.h.
motoman::simple_message::io_ctrl_reply::WriteSingleIOReply::WriteSingleIOReply | ( | void | ) |
Default constructor.
This method creates empty data.
Definition at line 59 of file motoman_write_single_io_reply.cpp.
motoman::simple_message::io_ctrl_reply::WriteSingleIOReply::~WriteSingleIOReply | ( | void | ) |
Destructor.
Definition at line 63 of file motoman_write_single_io_reply.cpp.
|
inlinevirtual |
Implements industrial::simple_serialize::SimpleSerialize.
Definition at line 167 of file motoman_write_single_io_reply.h.
void motoman::simple_message::io_ctrl_reply::WriteSingleIOReply::copyFrom | ( | WriteSingleIOReply & | src | ) |
Copies the passed in value.
src | (value to copy) |
Definition at line 104 of file motoman_write_single_io_reply.cpp.
|
inline |
Returns the result code.
Definition at line 133 of file motoman_write_single_io_reply.h.
|
static |
Definition at line 78 of file motoman_write_single_io_reply.cpp.
|
inline |
Definition at line 144 of file motoman_write_single_io_reply.h.
void motoman::simple_message::io_ctrl_reply::WriteSingleIOReply::init | ( | ) |
Initializes a empty motion control reply.
Definition at line 67 of file motoman_write_single_io_reply.cpp.
void motoman::simple_message::io_ctrl_reply::WriteSingleIOReply::init | ( | WriteSingleIOReplyResultCode | result_code | ) |
Initializes a complete read single io reply.
Definition at line 73 of file motoman_write_single_io_reply.cpp.
|
virtual |
Implements industrial::simple_serialize::SimpleSerialize.
Definition at line 116 of file motoman_write_single_io_reply.cpp.
bool motoman::simple_message::io_ctrl_reply::WriteSingleIOReply::operator== | ( | WriteSingleIOReply & | rhs | ) |
== operator implementation
Definition at line 109 of file motoman_write_single_io_reply.cpp.
|
inline |
Sets the result code.
result | code |
Definition at line 123 of file motoman_write_single_io_reply.h.
|
virtual |
Implements industrial::simple_serialize::SimpleSerialize.
Definition at line 130 of file motoman_write_single_io_reply.cpp.
|
private |
The result code.
Definition at line 176 of file motoman_write_single_io_reply.h.