libvisiontransfer  10.6.0
Public Member Functions | Static Public Member Functions | List of all members
visiontransfer::internal::ConversionHelpers Class Reference

Detailed Description

Internal helper functions for type conversion.

Definition at line 43 of file conversionhelpers.h.

#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)
 

Member Function Documentation

◆ anyToDouble()

template<typename T >
double visiontransfer::internal::ConversionHelpers::anyToDouble ( val)
inlinestatic

Converts any type to a double.

Definition at line 71 of file conversionhelpers.h.

◆ anyToString()

template<typename T >
static std::string visiontransfer::internal::ConversionHelpers::anyToString ( val)
inlinestatic

Converts any type to a string.

Definition at line 63 of file conversionhelpers.h.


The documentation for this class was generated from the following file:
Allied Vision