13#if __cplusplus >= 202002L
14#include <source_location>
22#define YARP_RETURNVALUE_DISABLE_BOOL_INPUT 1
28#define YARP_RETURNVALUE_DISABLE_BOOL_OUTPUT 0
38 return_value_error_generic = 1,
39 return_value_error_not_implemented_by_device = 2,
40 return_value_error_nws_nwc_communication_error = 3,
41 return_value_error_deprecated = 4,
42 return_value_error_method_failed = 5,
43 return_value_error_not_ready = 6,
44 return_value_uninitialized = 100
48 return_code value_b = return_code::return_value_uninitialized;
53#if !YARP_RETURNVALUE_DISABLE_BOOL_INPUT
60#if !YARP_RETURNVALUE_DISABLE_BOOL_INPUT
66#if !YARP_RETURNVALUE_DISABLE_BOOL_OUTPUT
67 operator bool()
const;
69 explicit operator bool()
const;
77#define ReturnValue_ok ReturnValue(yarp::dev::ReturnValue::return_code::return_value_ok)
79#if __cplusplus >= 202002L
82 yError(
"Method %s not yet implemented\n", location.function_name());
85inline ReturnValue
YARP_METHOD_DEPRECATED(
const std::source_location& location = std::source_location::current())
87 yError(
"Method %s has been deprecated\n", location.function_name());
93 yError(
"Method %s not yet implemented\n", location);
96#define YARP_METHOD_NOT_YET_IMPLEMENTED() yarp_method_not_implemented(__func__)
99 yError(
"Method %s has been deprecated\n", location);
102#define YARP_METHOD_DEPRECATED() yarp_method_deprecated(__func__)
bool operator==(const struct v4l2_control &left, const struct v4l2_control &right)
std::string toString(const T &value)
convert an arbitrary type to string.
#define YARP_METHOD_DEPRECATED()
#define YARP_METHOD_NOT_YET_IMPLEMENTED()
ReturnValue(const ReturnValue &other)=default
@ return_value_error_deprecated
Command answer lost during network transmission. Status unknown.
@ return_value_error_not_implemented_by_device
An interface for reading from a network connection.
An interface for writing to a network connection.
This is a base class for objects that can be both read from and be written to the YARP network.
For streams capable of holding different kinds of content, check what they actually have.
ReturnValue yarp_method_deprecated(const char *location)
ReturnValue yarp_method_not_implemented(const char *location)