#include <yarp/dev/ReturnValue.h>
Public Types | |
enum class | return_code { return_value_ok = 0 , return_value_error_generic = 1 , return_value_error_not_implemented_by_device = 2 , return_value_error_nws_nwc_communication_error = 3 , return_value_error_deprecated = 4 , return_value_error_method_failed = 5 , return_value_error_not_ready = 6 , return_value_uninitialized = 100 } |
Additional Inherited Members | |
![]() | |
static bool | copyPortable (const PortWriter &writer, PortReader &reader) |
Copy one portable to another, via writing and reading. | |
Definition at line 32 of file ReturnValue.h.
|
strong |
Definition at line 35 of file ReturnValue.h.
ReturnValue::ReturnValue | ( | ) |
Definition at line 13 of file ReturnValue.cpp.
|
default |
ReturnValue::ReturnValue | ( | return_code | code | ) |
Definition at line 115 of file ReturnValue.cpp.
|
default |
ReturnValue::operator bool | ( | ) | const |
Definition at line 110 of file ReturnValue.cpp.
ReturnValue & ReturnValue::operator&& | ( | const ReturnValue & | other | ) |
Definition at line 31 of file ReturnValue.cpp.
ReturnValue & ReturnValue::operator&= | ( | const ReturnValue & | other | ) |
Definition at line 51 of file ReturnValue.cpp.
bool ReturnValue::operator== | ( | const return_code & | code | ) | const |
Definition at line 120 of file ReturnValue.cpp.
bool ReturnValue::operator== | ( | const ReturnValue & | value | ) | const |
Definition at line 126 of file ReturnValue.cpp.
|
overridevirtual |
Read this object from a network connection.
Override this for your particular class.
reader | an interface to the network connection for reading |
Implements yarp::os::Portable.
Definition at line 132 of file ReturnValue.cpp.
std::string ReturnValue::toString | ( | ) |
Definition at line 86 of file ReturnValue.cpp.
|
overridevirtual |
Write this object to a network connection.
Override this for your particular class. Be aware that depending on the nature of the connections a port has, and what protocol they use, and how efficient the YARP implementation is, this method may be called once, twice, or many times, as the result of a single call to Port::write
writer | an interface to the network connection for writing |
Implements yarp::os::Portable.
Definition at line 139 of file ReturnValue.cpp.