50 namespace simple_message
90 LOG_COMM(
"Executing WriteSingleIO command load");
92 if (!buffer->
load(this->address_))
94 LOG_ERROR(
"Failed to load WriteSingleIO address");
98 if (!buffer->
load(this->value_))
100 LOG_ERROR(
"Failed to load WriteSingleIO value");
104 LOG_COMM(
"WriteSingleIO data successfully loaded");
110 LOG_COMM(
"Executing WriteSingleIO command unload");
112 if (!buffer->
unload(this->value_))
114 LOG_ERROR(
"Failed to unload WriteSingleIO value");
118 if (!buffer->
unload(this->address_))
120 LOG_ERROR(
"Failed to unload WriteSingleIO address");
124 LOG_COMM(
"WriteSingleIO data successfully unloaded");
industrial::shared_types::shared_int getAddress()
Returns the address of the IO element.
industrial::shared_types::shared_int address_
Address of IO element.
void init()
Initializes a empty write single io command.
WriteSingleIO(void)
Default constructor.
void setAddress(industrial::shared_types::shared_int address)
Sets address.
Class encapsulated write single io data. Motoman specific interface to write a single IO element on t...
industrial::shared_types::shared_int getValue()
Returns the value of the IO element.
#define LOG_COMM(format,...)
bool load(industrial::shared_types::shared_bool value)
bool operator==(WriteSingleIO &rhs)
== operator implementation
#define LOG_ERROR(format,...)
bool load(industrial::byte_array::ByteArray *buffer)
void copyFrom(WriteSingleIO &src)
Copies the passed in value.
void setValue(industrial::shared_types::shared_int value)
Sets value.
industrial::shared_types::shared_int value_
Value of IO element.
~WriteSingleIO(void)
Destructor.
bool unload(industrial::shared_types::shared_bool &value)
bool unload(industrial::byte_array::ByteArray *buffer)