Line |
Branch |
Exec |
Source |
1 |
|
|
/*************************************** |
2 |
|
|
Auteur : Pierre Aubert |
3 |
|
|
Mail : pierre.aubert@lapp.in2p3.fr |
4 |
|
|
Licence : CeCILL-C |
5 |
|
|
****************************************/ |
6 |
|
|
|
7 |
|
|
#ifndef __POPTION_TYPE_IMPL_H__ |
8 |
|
|
#define __POPTION_TYPE_IMPL_H__ |
9 |
|
|
|
10 |
|
|
#include "OptionType.h" |
11 |
|
|
|
12 |
|
|
///Get the POptionType from a value |
13 |
|
|
/** @param value : value to be used |
14 |
|
|
* @return corresponding POptionType of the value |
15 |
|
|
*/ |
16 |
|
|
template<typename T> |
17 |
|
|
OptionType::OptionType getOptionTypeFromValue(const T & value){ |
18 |
|
|
return getOptionTypeFromType<T>(); |
19 |
|
|
} |
20 |
|
|
|
21 |
|
|
///Get the POptionType from a type |
22 |
|
|
/** @return corresponding POptionType of the type |
23 |
|
|
*/ |
24 |
|
|
template<typename T> |
25 |
|
83 |
OptionType::OptionType getOptionTypeFromType(){ |
26 |
|
83 |
return OptionType::STRING; |
27 |
|
|
} |
28 |
|
|
|
29 |
|
|
|
30 |
|
|
#endif |
31 |
|
|
|
32 |
|
|
|