12 #include <type_traits> 52 GetParamResult(
const T& value, const ::cras::GetParamResultInfo& info) : value(value), info(info) {}
67 template <typename = ::std::enable_if<::std::is_same<T, char*>::value>>
68 operator ::std::string() const
78 template <int I, typename = ::std::enable_if<::std::is_same<T, char[I]>::value>>
79 operator ::std::string() const
bool defaultUsed
Whether the default value has been used.
bool convertFailed
Whether a value conversion failed.
T value
The returned value.
::std::string message
The log message (returned even if option printMessages is false).
::ros::console::Level messageLevel
Severity of the log message.
GetParamResult(const T &value, const ::cras::GetParamResultInfo &info)
Construct the result from a value and info.
bool requiredMissing
Whether a required parameter was found missing or could not be read.
Detailed information about the executed getParam() call.
Wrapper for the result of a getParam() call. It is designed to autoconvert to the result type sometim...