ATLAS Offline Software
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 
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.h
checkFileSG.line
line
Definition: checkFileSG.py:75
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
lineSplitter
std::vector< std::string > lineSplitter(const std::string &s, char delimiter)
Definition: lineSplitter.cxx:8
python.AthDsoLogger.delimiter
delimiter
Definition: AthDsoLogger.py:71