ATTPCROOT
0.3.0-alpha
A ROOT-based framework for analyzing data from active target detectors
AtTools
AtStringManip.cxx
Go to the documentation of this file.
1
#include "
AtStringManip.h
"
2
3
#include <sstream>
4
5
namespace
AtTools
{
6
std::vector<std::string>
SplitString
(
const
std::string &s,
char
delim)
7
{
8
using namespace
std;
9
vector<string> res;
10
stringstream ss(s);
11
string
token;
12
while
(getline(ss, token, delim)) {
13
if
(token !=
""
)
14
res.push_back(token);
15
}
16
return
res;
17
}
18
}
// namespace AtTools
AtTools::SplitString
std::vector< std::string > SplitString(const std::string &s, char delim)
split string, s, into vector of tokens split by delim.
Definition:
AtStringManip.cxx:6
AtTools
Definition:
AtSimpleSimulation.h:19
AtStringManip.h
Generated on Sat Nov 11 2023 15:30:39 for ATTPCROOT by
1.8.18