17#if !YARP_RETURNVALUE_DISABLE_BOOL_INPUT
41 if (this->value_b == other.value_b)
61 if (this->value_b == other.value_b)
71#if !YARP_RETURNVALUE_DISABLE_BOOL_INPUT
91 return std::string(
"ok");
93 return std::string(
"return_value_error_deprecated");
95 return std::string(
"return_value_error_generic");
97 return std::string(
"return_value_error_method_fail");
99 return std::string(
"return_value_error_not_implemented_by_device");
101 return std::string(
"return_value_error_nws_nwc_communication_error");
103 return std::string(
"return_value_error_not_ready");
106 return std::string(
"unknown/uninitialized");
110ReturnValue::operator
bool()
const
112 return value_b == return_code::return_value_ok;
122 if (code == this->value_b)
return true;
128 if (value == this->value_b)
return true;
bool operator==(const return_code &code) const
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
ReturnValue & operator&&(const ReturnValue &other)
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
ReturnValue & operator&=(const ReturnValue &other)
@ return_value_error_nws_nwc_communication_error
Method is not (yet) implemented.
@ return_value_error_deprecated
Command answer lost during network transmission. Status unknown.
@ return_value_error_not_implemented_by_device
@ return_value_error_generic
Method was successfully executed.
@ return_value_uninitialized
Method failed because some initialization is missing.
@ return_value_error_not_ready
Method failed due to invalid internal status/invalid request.
@ return_value_error_method_failed
Method is deprecated.
A mini-server for performing network communication in the background.
An interface for reading from a network connection.
An interface for writing to a network connection.
For streams capable of holding different kinds of content, check what they actually have.
An interface to the operating system, including Port based communication.