PhoenixPresentation  2.0.0
Set of cmake function to automate presentation generation
OptionType_impl.h File Reference
#include "OptionType.h"
+ Include dependency graph for OptionType_impl.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<typename T >
OptionType::OptionType getOptionTypeFromType ()
 Get the POptionType from a type. More...
 
template<typename T >
OptionType::OptionType getOptionTypeFromValue (const T &value)
 Get the POptionType from a value. More...
 

Function Documentation

◆ getOptionTypeFromType()

template<typename T >
OptionType::OptionType getOptionTypeFromType ( )

Get the POptionType from a type.

Returns
corresponding POptionType of the type

Definition at line 25 of file OptionType_impl.h.

25  {
26  return OptionType::STRING;
27 }

References OptionType::STRING.

◆ getOptionTypeFromValue()

template<typename T >
OptionType::OptionType getOptionTypeFromValue ( const T &  value)

Get the POptionType from a value.

Parameters
value: value to be used
Returns
corresponding POptionType of the value

Definition at line 17 of file OptionType_impl.h.

17  {
18  return getOptionTypeFromType<T>();
19 }