GCC Code Coverage Report
Directory: ./ Exec Total Coverage
File: tmp_project/StringUtils/src/convertToString.cpp Lines: 4 4 100.0 %
Date: 2024-12-09 15:30:52 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
50
std::string convertToString<std::string>(const std::string & val){
16
50
	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
49
std::string stringToValue<std::string>(const std::string & str){
25
49
	return str;
26
}
27