ATLAS Offline Software
Loading...
Searching...
No Matches
Trigger
TrigHypothesis
TrigHLTJetHypo
src
TrigHLTJetHypoUtils
lineSplitter.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
TrigHLTJetHypo/TrigHLTJetHypoUtils/lineSplitter.h
"
6
#include <sstream>
7
8
std::vector<std::string>
lineSplitter
(
const
std::string& s,
9
char
delimiter){
10
11
std::stringstream line (s);
12
std::string seg;
13
std::vector<std::string> segs;
14
15
while
(std::getline(line, seg, delimiter)){
16
segs.push_back(seg);
17
}
18
19
return
segs;
20
}
lineSplitter
std::vector< std::string > lineSplitter(const std::string &s, char delimiter)
Definition
lineSplitter.cxx:8
lineSplitter.h
Generated on
for ATLAS Offline Software by
1.14.0