#include <yarp/dev/ReturnValue.h>
Inheritance diagram for yarp::dev::ReturnValue:Public Types | |
| enum class | return_code { return_value_ok = yarp::os::createVocab32('o','k') , return_value_error_generic = yarp::os::createVocab32('e', 'r', 'r', '1') , return_value_error_not_implemented_by_device = yarp::os::createVocab32('e', 'r', 'r', '2') , return_value_error_nws_nwc_communication_error = yarp::os::createVocab32('e', 'r', 'r', '3') , return_value_error_deprecated = yarp::os::createVocab32('e', 'r', 'r', '4') , return_value_error_method_failed = yarp::os::createVocab32('e', 'r', 'r', '5') , return_value_error_not_ready = yarp::os::createVocab32('e', 'r', 'r', '6') , return_value_uninitialized = yarp::os::createVocab32('m', 'i', 's', 's') } |
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 33 of file ReturnValue.h.
|
strong |
Definition at line 36 of file ReturnValue.h.
| ReturnValue::ReturnValue | ( | ) |
Definition at line 28 of file ReturnValue.cpp.
|
default |
| ReturnValue::ReturnValue | ( | return_code | code | ) |
Definition at line 130 of file ReturnValue.cpp.
|
default |
| ReturnValue::operator bool | ( | ) | const |
Definition at line 125 of file ReturnValue.cpp.
| ReturnValue & ReturnValue::operator&& | ( | const ReturnValue & | other | ) |
Definition at line 46 of file ReturnValue.cpp.
| ReturnValue & ReturnValue::operator&= | ( | const ReturnValue & | other | ) |
Definition at line 66 of file ReturnValue.cpp.
| bool ReturnValue::operator== | ( | const return_code & | code | ) | const |
Definition at line 135 of file ReturnValue.cpp.
| bool ReturnValue::operator== | ( | const ReturnValue & | value | ) | const |
Definition at line 141 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 147 of file ReturnValue.cpp.
| std::string ReturnValue::toString | ( | ) |
Definition at line 101 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 160 of file ReturnValue.cpp.