14#if __cplusplus >= 202002L
15#include <source_location>
23#define YARP_RETURNVALUE_DISABLE_BOOL_INPUT 1
29#define YARP_RETURNVALUE_DISABLE_BOOL_OUTPUT 0
50 return_code value_b = return_code::return_value_uninitialized;
55#if !YARP_RETURNVALUE_DISABLE_BOOL_INPUT
62#if !YARP_RETURNVALUE_DISABLE_BOOL_INPUT
68#if !YARP_RETURNVALUE_DISABLE_BOOL_OUTPUT
69 operator bool()
const;
71 explicit operator bool()
const;
79#ifndef SWIG_PREPROCESSOR_SHOULD_SKIP_THIS
80#define ReturnValue_ok ReturnValue(yarp::dev::ReturnValue::return_code::return_value_ok)
82#if __cplusplus >= 202002L
85 yError(
"Method %s not yet implemented\n", location.function_name());
88inline ReturnValue
YARP_METHOD_DEPRECATED(
const std::source_location& location = std::source_location::current())
90 yError(
"Method %s has been deprecated\n", location.function_name());
96 yError(
"Method %s not yet implemented\n", location);
99#define YARP_METHOD_NOT_YET_IMPLEMENTED() yarp_method_not_implemented(__func__)
102 yError(
"Method %s has been deprecated\n", location);
105#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)
constexpr yarp::conf::vocab32_t createVocab32(char a, char b=0, char c=0, char d=0)
Create a vocab from chars.