40 namespace simple_string
76 LOG_COMM(
"Executing SimpleString load");
80 char *str =
new char[size + 1];
84 if (!buffer->
load(str, size)) {
85 LOG_ERROR(
"Failed to load SimpleString data");
91 if (!buffer->
load(size))
93 LOG_ERROR(
"Failed to load SimpleString size");
97 LOG_COMM(
"SimpleString data successfully loaded");
103 LOG_COMM(
"Executing SimpleString unload");
108 if (!buffer->
unload(size))
110 LOG_ERROR(
"Failed to unload SimpleString size");
114 char *str =
new char[size + 1];
116 if (!buffer->
unload(str, size)) {
117 LOG_ERROR(
"Failed to unload SimpleString size");
125 LOG_COMM(
"SimpleString data successfully unloaded");
string getString() const
Returns the string data.
string string_
string data
void copyFrom(SimpleString &src)
Copies the passed in value.
#define LOG_COMM(format,...)
SimpleString(void)
Default constructor.
bool load(industrial::shared_types::shared_bool value)
void setString(string str)
Sets the string data.
#define LOG_ERROR(format,...)
industrial::shared_types::shared_int getStringSize() const
Returns the string size.
void init()
Initializes a empty motion control reply.
Class encapsulated set io reply data. These messages are sent by the FSRobo-R controller in response ...
bool unload(industrial::shared_types::shared_bool &value)
bool load(industrial::byte_array::ByteArray *buffer)
~SimpleString(void)
Destructor.
bool unload(industrial::byte_array::ByteArray *buffer)
bool operator==(SimpleString &rhs)
== operator implementation