Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
kodi::tools Namespace Reference

Classes

class  CDllHelper
 
class  CEndTime
 
class  CThread
 
class  CTimer
 
class  StringUtils
 

Enumerations

enum  TIME_FORMAT {
  TIME_FORMAT_GUESS = 0 , TIME_FORMAT_SS = 1 , TIME_FORMAT_MM = 2 , TIME_FORMAT_MM_SS = 3 ,
  TIME_FORMAT_HH = 4 , TIME_FORMAT_HH_SS = 5 , TIME_FORMAT_HH_MM = 6 , TIME_FORMAT_HH_MM_SS = 7 ,
  TIME_FORMAT_XX = 8 , TIME_FORMAT_HH_MM_XX = 14 , TIME_FORMAT_HH_MM_SS_XX = 15 , TIME_FORMAT_H = 16 ,
  TIME_FORMAT_H_MM_SS = 19 , TIME_FORMAT_H_MM_SS_XX = 27 , TIME_FORMAT_SECS = 32 , TIME_FORMAT_MINS = 64 ,
  TIME_FORMAT_HOURS = 128 , TIME_FORMAT_M = 256
}
 

Functions

template<typename T , std::enable_if_t<!std::is_enum< T >::value, int > = 0>
constexpr auto && EnumToInt (T &&arg) noexcept
 
template<typename T , std::enable_if_t< std::is_enum< T >::value, int > = 0>
constexpr auto EnumToInt (T &&arg) noexcept
 

Function Documentation

◆ EnumToInt() [1/2]

template<typename T , std::enable_if_t<!std::is_enum< T >::value, int > = 0>
auto && kodi::tools::EnumToInt ( T && arg)
constexprnoexcept

◆ EnumToInt() [2/2]

template<typename T , std::enable_if_t< std::is_enum< T >::value, int > = 0>
auto kodi::tools::EnumToInt ( T && arg)
constexprnoexcept