#include <yarp/dev/ReturnValue.h>
Inheritance diagram for yarp::dev::ReturnValue: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 } |
Public Member Functions | |
| ReturnValue () | |
| ~ReturnValue ()=default | |
| ReturnValue (return_code code) | |
| ReturnValue (const ReturnValue &other)=default | |
| ReturnValue & | operator&& (const ReturnValue &other) |
| ReturnValue & | operator&= (const ReturnValue &other) |
| bool | operator== (const return_code &code) const |
| bool | operator== (const ReturnValue &value) const |
| std::string | toString () |
| operator bool () const | |
| bool | read (yarp::os::ConnectionReader &connection) override |
| Read this object from a network connection. | |
| bool | write (yarp::os::ConnectionWriter &connection) const override |
| Write this object to a network connection. | |
Public Member Functions inherited from yarp::os::Portable | |
| virtual Type | getType () const |
Public Member Functions inherited from yarp::os::PortReader | |
| virtual | ~PortReader () |
| Destructor. | |
| virtual Type | getReadType () const |
Public Member Functions inherited from yarp::os::PortWriter | |
| virtual | ~PortWriter () |
| Destructor. | |
| virtual void | onCompletion () const |
| This is called when the port has finished all writing operations. | |
| virtual void | onCommencement () const |
| This is called when the port is about to begin writing operations. | |
| virtual yarp::os::Type | getWriteType () const |
Additional Inherited Members | |
Static Public Member Functions inherited from yarp::os::Portable | |
| 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 26 of file ReturnValue.cpp.
|
default |
| ReturnValue::ReturnValue | ( | return_code | code | ) |
Definition at line 128 of file ReturnValue.cpp.
|
default |
| ReturnValue::operator bool | ( | ) | const |
Definition at line 123 of file ReturnValue.cpp.
| ReturnValue & ReturnValue::operator&& | ( | const ReturnValue & | other | ) |
Definition at line 44 of file ReturnValue.cpp.
| ReturnValue & ReturnValue::operator&= | ( | const ReturnValue & | other | ) |
Definition at line 64 of file ReturnValue.cpp.
| bool ReturnValue::operator== | ( | const return_code & | code | ) | const |
Definition at line 133 of file ReturnValue.cpp.
| bool ReturnValue::operator== | ( | const ReturnValue & | value | ) | const |
Definition at line 139 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 145 of file ReturnValue.cpp.
| std::string ReturnValue::toString | ( | ) |
Definition at line 99 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 157 of file ReturnValue.cpp.