ATLAS Offline Software
Functions
lineSplitter.cxx File Reference
#include "TrigHLTJetHypo/TrigHLTJetHypoUtils/lineSplitter.h"
#include <sstream>
Include dependency graph for lineSplitter.cxx:

Go to the source code of this file.

Functions

std::vector< std::string > lineSplitter (const std::string &s, char delimiter)
 

Function Documentation

◆ lineSplitter()

std::vector<std::string> lineSplitter ( const std::string &  s,
char  delimiter 
)

Definition at line 8 of file lineSplitter.cxx.

9  {
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 }
checkFileSG.line
line
Definition: checkFileSG.py:75
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
python.AthDsoLogger.delimiter
delimiter
Definition: AthDsoLogger.py:71