LCFIVertex
0.7.2
Main Page
Related Pages
Namespaces
Classes
Files
File List
vertex_lcfi
util
src
string.cpp
1
#include <sstream>
2
#include <string>
3
using
std::string;
4
using
std::ostringstream;
5
6
namespace
vertex_lcfi{
namespace
util{
7
8
string
makeString(
const
double
param)
9
{
10
ostringstream os;
11
//We don't need this but here it is for rememberance
12
//os.setf(ios::fixed);
13
//os.precision(2);
14
os << param;
15
return
os.str();
16
}
17
18
string
makeString(
const
void
* param)
19
{
20
ostringstream os;
21
os << param;
22
return
os.str();
23
}
24
25
string
makeString(
const
bool
param)
26
{
27
if
(param == 1)
28
return
"TRUE"
;
29
else
30
return
"FALSE"
;
31
}
32
33
string
makeString(
const
string
param)
34
{
35
return
param;
36
}
37
}}
38
Generated on Fri Dec 2 2016 12:36:49 for LCFIVertex by
1.8.6