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 |
|
2 |
std::string convertToString<std::string>(const std::string & val){ |
16 |
|
2 |
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 |
|
1 |
std::string stringToValue<std::string>(const std::string & str){ |
25 |
|
1 |
return str; |
26 |
|
|
} |
27 |
|
|
|
28 |
|
|
|