Wrapper for the result of a getParam() call. It is designed to autoconvert to the result type sometimes. More...
#include <get_param_result.hpp>
Public Member Functions | |
GetParamResult (const T &value, const ::cras::GetParamResultInfo &info) | |
Construct the result from a value and info. More... | |
operator T () const | |
Autoconvert to the result value (works only sometimes). More... | |
template<typename = ::std::enable_if<::std::is_same<T, char*>::value>> | |
operator::std::string () const | |
Autoconvert C-string results to std::string. More... | |
template<int I, typename = ::std::enable_if<::std::is_same<T, char[I]>::value>> | |
operator::std::string () const | |
Autoconvert char* results to std::string. More... | |
Public Attributes | |
::cras::GetParamResultInfo | info {} |
Details about getParam() execution. More... | |
T | value |
The returned value. More... | |
Wrapper for the result of a getParam() call. It is designed to autoconvert to the result type sometimes.
T | Type of the result. |
Definition at line 45 of file get_param_result.hpp.
|
inline |
Construct the result from a value and info.
[in] | value | The returned value. |
[in] | info | Details about getParam() execution. |
Definition at line 52 of file get_param_result.hpp.
|
inline |
Autoconvert to the result value (works only sometimes).
Definition at line 58 of file get_param_result.hpp.
|
inline |
Autoconvert C-string results to std::string.
Definition at line 68 of file get_param_result.hpp.
|
inline |
Autoconvert char* results to std::string.
I | Length of the C-string. |
Definition at line 79 of file get_param_result.hpp.
::cras::GetParamResultInfo cras::GetParamResult< T >::info {} |
Details about getParam() execution.
Definition at line 88 of file get_param_result.hpp.
T cras::GetParamResult< T >::value |
The returned value.
Definition at line 85 of file get_param_result.hpp.