#include <uhd/config.hpp>
#include <uhd/exception.hpp>
#include <iomanip>
#include <sstream>
#include <string>
Go to the source code of this file.
Namespaces | |
uhd | |
uhd::cast | |
Functions | |
template<typename T > | |
T | uhd::cast::hexstr_cast (const std::string &in) |
Convert a hexadecimal string into a value. More... | |
template<typename T > | |
T | uhd::cast::fromstr_cast (const std::string &in) |
template<typename data_t > | |
data_t | uhd::cast::from_str (const std::string &) |
Generic cast-from-string function. More... | |
template<> | |
UHD_API bool | uhd::cast::from_str (const std::string &val) |
Specialization of uhd::cast::from_str() for Boolean values. More... | |
template<> | |
UHD_API double | uhd::cast::from_str (const std::string &val) |
Specialization of uhd::cast::from_str() for double-precision values. More... | |
template<> | |
UHD_API int | uhd::cast::from_str (const std::string &val) |
Specialization of uhd::cast::from_str() for integer values. More... | |
template<> | |
UHD_API std::string | uhd::cast::from_str (const std::string &val) |
Specialization of uhd::cast::from_str() for strings. More... | |
UHD_API std::string | uhd::cast::to_ordinal_string (int val) |
Create an ordinal string from a number. More... | |