SoapySDR  0.8.0-gab626068
Vendor and platform neutral SDR interface library
Functions
SoapySDR::Detail Namespace Reference

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)
 

Function Documentation

◆ SettingToString() [1/4]

std::string SoapySDR::Detail::SettingToString ( const bool &  s)
inline

◆ SettingToString() [2/4]

std::string SoapySDR::Detail::SettingToString ( const char *  s)
inline

◆ SettingToString() [3/4]

std::string SoapySDR::Detail::SettingToString ( const std::string &  s)
inline

◆ SettingToString() [4/4]

template<typename Type >
std::string SoapySDR::Detail::SettingToString ( const Type &  s)

Convert an arbitrary type to a string. Supports bools, integers, floats, and strings

Template Parameters
Typethe type of the input argument
Parameters
sthe setting value as the specified type
Returns
the value converted to a string

◆ StringToSetting() [1/5]

template<typename 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

Template Parameters
Typethe specified output type
Parameters
sthe setting value as a string
Returns
the value converted to Type

◆ StringToSetting() [2/5]

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 SoapySDR::Detail::StringToSetting ( const std::string &  s)

Convert a string to the specified type. Supports bools, integers, floats, and strings

Template Parameters
Typethe specified output type
Parameters
sthe setting value as a string
Returns
the value converted to Type

◆ StringToSetting() [3/5]

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 SoapySDR::Detail::StringToSetting ( const std::string &  s)

Convert a string to the specified type. Supports bools, integers, floats, and strings

Template Parameters
Typethe specified output type
Parameters
sthe setting value as a string
Returns
the value converted to Type

◆ StringToSetting() [4/5]

template<typename Type >
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

Template Parameters
Typethe specified output type
Parameters
sthe setting value as a string
Returns
the value converted to Type

◆ StringToSetting() [5/5]

template<typename Type >
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

Template Parameters
Typethe specified output type
Parameters
sthe setting value as a string
Returns
the value converted to Type