|
libvisiontransfer
10.0.0
|
Internal helper functions for type conversion. More...
#include <visiontransfer/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) |
Internal helper functions for type conversion.
Definition at line 19 of file conversionhelpers.h.
|
inlinestatic |
Converts any type to a double.
Definition at line 47 of file conversionhelpers.h.
|
inlinestatic |
Converts any type to a string.
Definition at line 27 of file conversionhelpers.h.