ATLAS Offline Software
Functions
lineSplitter.h File Reference
#include <string>
#include <vector>
Include dependency graph for lineSplitter.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

std::vector< std::string > lineSplitter (const std::string &, char delimiter='\n')
 

Function Documentation

◆ lineSplitter()

std::vector<std::string> lineSplitter ( const std::string &  ,
char  delimiter = '\n' 
)

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