18#ifndef __FPSDK_COMMON_TYPES_HPP__
19#define __FPSDK_COMMON_TYPES_HPP__
45template <typename T, typename = typename std::enable_if<std::is_enum<T>::value, T>::type>
46constexpr typename std::underlying_type<T>::type
EnumToVal(T enum_val)
48 return static_cast<typename std::underlying_type<T>::type
>(enum_val);
const char * GnssFixTypeStr(const GnssFixType fix_type)
Stringify GNSS fix type.
GnssFixType
GNSS fix types.
@ FIX_3D_DR
3D + dead-reckoning fix
@ FIX_RTK_FLOAT
RTK float fix (implies 3D fix)
@ FIX_DRONLY
Dead-reckoning only fix.
@ FIX_RTK_FLOAT_DR
RTK float fix + dead-reckoning (implies 3D_DR fix)
@ FIX_RTK_FIXED_DR
RTK fixed fix + dead-reckoning (implies 3D_DR fix)
@ FIX_UNKNOWN
Unknown fix.
@ FIX_RTK_FIXED
RTK fixed fix (implies 3D fix)
constexpr std::underlying_type< T >::type EnumToVal(T enum_val)
Convert enum class constant to the underlying integral type value.