CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
Ph1PMapSummaryHelper Namespace Reference

Functions

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

Function Documentation

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

Definition at line 39 of file Phase1PixelSummaryMap.h.

References AlCaHLTBitMon_QueryRunRegistry::string.

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

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  }