CMS 3D CMS Logo

Functions
Ph1PMapSummaryHelper Namespace Reference

Functions

std::vector< std::string > tokenize (std::string line, char delimiter)
 

Function Documentation

◆ tokenize()

std::vector<std::string> Ph1PMapSummaryHelper::tokenize ( std::string  line,
char  delimiter 
)

Definition at line 39 of file Phase1PixelSummaryMap.h.

39  {
40  // Vector of string to save tokens
41  std::vector<std::string> tokens;
42  std::stringstream check1(line);
43  std::string intermediate;
44 
45  // Tokenizing w.r.t. delimiter
46  while (getline(check1, intermediate, delimiter)) {
47  tokens.push_back(intermediate);
48  }
49  return tokens;
50  }

References makeHLTPrescaleTable::delimiter, mps_splice::line, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by Phase1PixelSummaryMap::addNamedBins(), and PasswordReader::readPassword().

makeHLTPrescaleTable.delimiter
delimiter
Definition: makeHLTPrescaleTable.py:181
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
mps_splice.line
line
Definition: mps_splice.py:76