50 namespace simple_message
87 LOG_COMM(
"Executing ReadSingleIO command load");
89 if (!buffer->
load(this->address_))
91 LOG_ERROR(
"Failed to load ReadSingleIO address");
95 LOG_COMM(
"ReadSingleIO data successfully loaded");
101 LOG_COMM(
"Executing ReadSingleIO command unload");
103 if (!buffer->
unload(this->address_))
105 LOG_ERROR(
"Failed to unload ReadSingleIO address");
109 LOG_COMM(
"ReadSingleIO data successfully unloaded");
bool load(industrial::byte_array::ByteArray *buffer)
bool operator==(ReadSingleIO &rhs)
== operator implementation
#define LOG_COMM(format,...)
bool load(industrial::shared_types::shared_bool value)
#define LOG_ERROR(format,...)
void init()
Initializes a empty motion control command.
Class encapsulated read single io data. Motoman specific interface to read a single IO element on the...
void copyFrom(ReadSingleIO &src)
Copies the passed in value.
void setAddress(industrial::shared_types::shared_int address)
Sets address.
ReadSingleIO(void)
Default constructor.
bool unload(industrial::byte_array::ByteArray *buffer)
bool unload(industrial::shared_types::shared_bool &value)
industrial::shared_types::shared_int address_
Address of IO element.
industrial::shared_types::shared_int getAddress()
Returns the address of the IO element.
~ReadSingleIO(void)
Destructor.