SoapySDR
0.8.0-gab626068
Vendor and platform neutral SDR interface library
|
Functions | |
template<typename Type > | |
std::enable_if< std::is_same< Type, bool >::value, Type >::type | StringToSetting (const std::string &s) |
template<typename Type > | |
std::enable_if< not std::is_same< Type, bool >::value and std::is_integral< Type >::value and std::is_signed< Type >::value, Type >::type | StringToSetting (const std::string &s) |
template<typename Type > | |
std::enable_if< not std::is_same< Type, bool >::value and std::is_integral< Type >::value and std::is_unsigned< Type >::value, Type >::type | StringToSetting (const std::string &s) |
template<typename Type > | |
std::enable_if< std::is_floating_point< Type >::value, Type >::type | StringToSetting (const std::string &s) |
template<typename Type > | |
std::enable_if< std::is_same< typename std::decay< Type >::type, std::string >::value, Type >::type | StringToSetting (const std::string &s) |
std::string | SettingToString (const bool &s) |
std::string | SettingToString (const char *s) |
std::string | SettingToString (const std::string &s) |
template<typename Type > | |
std::string | SettingToString (const Type &s) |
|
inline |
|
inline |
|
inline |
std::string SoapySDR::Detail::SettingToString | ( | const Type & | s | ) |
Convert an arbitrary type to a string. Supports bools, integers, floats, and strings
Type | the type of the input argument |
s | the setting value as the specified type |
std::enable_if<std::is_same<Type, bool>::value, Type>::type SoapySDR::Detail::StringToSetting | ( | const std::string & | s | ) |
Convert a string to the specified type. Supports bools, integers, floats, and strings
Type | the specified output type |
s | the setting value as a string |
std::enable_if<not std::is_same<Type, bool>::value and std::is_integral<Type>::value and std::is_signed<Type>::value, Type>::type SoapySDR::Detail::StringToSetting | ( | const std::string & | s | ) |
Convert a string to the specified type. Supports bools, integers, floats, and strings
Type | the specified output type |
s | the setting value as a string |
std::enable_if<not std::is_same<Type, bool>::value and std::is_integral<Type>::value and std::is_unsigned<Type>::value, Type>::type SoapySDR::Detail::StringToSetting | ( | const std::string & | s | ) |
Convert a string to the specified type. Supports bools, integers, floats, and strings
Type | the specified output type |
s | the setting value as a string |
std::enable_if<std::is_floating_point<Type>::value, Type>::type SoapySDR::Detail::StringToSetting | ( | const std::string & | s | ) |
Convert a string to the specified type. Supports bools, integers, floats, and strings
Type | the specified output type |
s | the setting value as a string |
std::enable_if<std::is_same<typename std::decay<Type>::type, std::string>::value, Type>::type SoapySDR::Detail::StringToSetting | ( | const std::string & | s | ) |
Convert a string to the specified type. Supports bools, integers, floats, and strings
Type | the specified output type |
s | the setting value as a string |