15#if __cplusplus >= 202002L
16#include <source_location>
24#define YARP_RETURNVALUE_DISABLE_BOOL_INPUT 1
30#define YARP_RETURNVALUE_DISABLE_BOOL_OUTPUT 0
52 return_code value_b = return_code::return_value_uninitialized;
57#if !YARP_RETURNVALUE_DISABLE_BOOL_INPUT
64#if !YARP_RETURNVALUE_DISABLE_BOOL_INPUT
70#if !YARP_RETURNVALUE_DISABLE_BOOL_OUTPUT
71 operator bool()
const;
73 explicit operator bool()
const;
81#ifndef SWIG_PREPROCESSOR_SHOULD_SKIP_THIS
82#define ReturnValue_ok ReturnValue(yarp::dev::ReturnValue::return_code::return_value_ok)
83#define ReturnValue_error_generic ReturnValue(yarp::dev::ReturnValue::return_code::return_value_error_generic)
84#define ReturnValue_error_not_implemented_by_device ReturnValue(yarp::dev::ReturnValue::return_code::return_value_error_not_implemented_by_device)
85#define ReturnValue_error_nws_nwc_communication_error ReturnValue(yarp::dev::ReturnValue::return_code::return_value_error_nws_nwc_communication_error)
86#define ReturnValue_error_deprecated ReturnValue(yarp::dev::ReturnValue::return_code::return_value_error_deprecated)
87#define ReturnValue_error_method_failed ReturnValue(yarp::dev::ReturnValue::return_code::return_value_error_method_failed)
88#define ReturnValue_error_not_ready ReturnValue(yarp::dev::ReturnValue::return_code::return_value_error_not_ready)
89#define ReturnValue_error_input_out_of_bounds ReturnValue(yarp::dev::ReturnValue::return_code::return_value_error_input_out_of_bounds)
90#define ReturnValue_uninitialized ReturnValue(yarp::dev::ReturnValue::return_code::return_value_uninitialized)
92#if __cplusplus >= 202002L
93inline ReturnValue
YARP_METHOD_NOT_YET_IMPLEMENTED(
const std::source_location& location = std::source_location::current(), std::string custom_string =
"")
95 yError(
"Method %s not yet implemented. %s\n", location.function_name(), custom_string.c_str());
98inline ReturnValue
YARP_METHOD_DEPRECATED(
const std::source_location& location = std::source_location::current(), std::string custom_string =
"")
100 yError(
"Method %s has been deprecated. %s\n", location.function_name(), custom_string.c_str());
106 yError(
"Method %s not yet implemented. %s\n", location.c_str(), custom_string.c_str());
109#define YARP_METHOD_NOT_YET_IMPLEMENTED() yarp_method_not_implemented(__func__)
112 yError(
"Method %s has been deprecated. %s\n", location.c_str(), custom_string.c_str());
115#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(std::string location, std::string custom_string="")
ReturnValue yarp_method_not_implemented(std::string location, std::string custom_string="")
constexpr yarp::conf::vocab32_t createVocab32(char a, char b=0, char c=0, char d=0)
Create a vocab from chars.