GCC Code Coverage Report
Directory: ./ Exec Total Coverage
File: tmp_project/StringUtils/src/convertToString.cpp Lines: 4 4 100.0 %
Date: 2023-10-11 10:52:07 Branches: 0 0 - %

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