Line |
Branch |
Exec |
Source |
1 |
|
|
/*************************************** |
2 |
|
|
Auteur : Pierre Aubert |
3 |
|
|
Mail : pierre.aubert@lapp.in2p3.fr |
4 |
|
|
Licence : CeCILL-C |
5 |
|
|
****************************************/ |
6 |
|
|
|
7 |
|
|
|
8 |
|
|
#include "convertToString.h" |
9 |
|
|
|
10 |
|
|
///Convert a value to string (specialisation for string) |
11 |
|
|
/** @param val : value |
12 |
|
|
* @return string |
13 |
|
|
*/ |
14 |
|
|
template<> |
15 |
|
46 |
std::string convertToString<std::string>(const std::string & val){ |
16 |
|
46 |
return val; |
17 |
|
|
} |
18 |
|
|
|
19 |
|
|
///Convert a string to value (specialisation for string) |
20 |
|
|
/** @param str : string |
21 |
|
|
* @return string value |
22 |
|
|
*/ |
23 |
|
|
template<> |
24 |
|
35 |
std::string stringToValue<std::string>(const std::string & str){ |
25 |
|
35 |
return str; |
26 |
|
|
} |
27 |
|
|
|
28 |
|
|
|