81 LOG_COMM(
"Executing SysStat command load");
83 if (!buffer->
load(this->stat_type_))
85 LOG_ERROR(
"Failed to load SysStat stat type");
89 if (!buffer->
load(this->result_))
91 LOG_ERROR(
"Failed to load SysStat result");
95 LOG_COMM(
"SysStat data successfully loaded");
101 LOG_COMM(
"Executing SysStat command unload");
103 if (!buffer->
unload(this->result_))
105 LOG_ERROR(
"Failed to unload SysStat result");
109 if (!buffer->
unload(this->stat_type_))
111 LOG_ERROR(
"Failed to unload SysStat stat type");
115 LOG_COMM(
"SysStat data successfully unloaded");
bool unload(industrial::byte_array::ByteArray *buffer)
void setResult(industrial::shared_types::shared_int result)
Sets result.
industrial::shared_types::shared_int stat_type_
Value of SysStat element.
~SysStat(void)
Destructor.
void init()
Initializes a empty write single io command.
#define LOG_COMM(format,...)
bool load(industrial::shared_types::shared_bool value)
#define LOG_ERROR(format,...)
industrial::shared_types::shared_int getResult()
Returns the value of the SysStat element.
void setStatType(industrial::shared_types::shared_int stat_type)
Sets stat type.
bool load(industrial::byte_array::ByteArray *buffer)
industrial::shared_types::shared_int getStatType()
Returns the value of the SysStat element.
void copyFrom(SysStat &src)
Copies the passed in value.
bool operator==(SysStat &rhs)
== operator implementation
bool unload(industrial::shared_types::shared_bool &value)
Class encapsulated write single io data. FSRobo-R specific interface to set IO element on the control...
industrial::shared_types::shared_int result_
Address of SysStat element.
SysStat(void)
Default constructor.