libvisiontransfer
10.8.0
|
Internal helper functions for type conversion.
Definition at line 46 of file conversionhelpers.h.
#include <visiontransfer/internal/conversionhelpers.h>
Public Member Functions | |
template<> | |
double | anyToDouble (const std::string &val) |
template<> | |
double | anyToDouble (std::string val) |
template<> | |
double | anyToDouble (const char *val) |
Static Public Member Functions | |
template<typename T > | |
static double | anyToDouble (T val) |
Converts any type to a double. More... | |
template<typename T > | |
static std::string | anyToString (T val) |
Converts any type to a string. More... | |
template<typename S , typename T , typename std::enable_if< std::is_arithmetic< S >::value >::type * = nullptr> | |
static S | toStringIfStringExpected (T val) |
template<typename S , typename T , typename std::enable_if< std::is_same< S, std::string >::value >::type * = nullptr> | |
static S | toStringIfStringExpected (T val) |
|
inlinestatic |
Converts any type to a double.
Definition at line 74 of file conversionhelpers.h.
|
inlinestatic |
Converts any type to a string.
Definition at line 66 of file conversionhelpers.h.