Function necsim::getCsvLineAndSplitIntoTokens

Function Documentation

vector<string> necsim::getCsvLineAndSplitIntoTokens(istream &str)

Gets the next line from a csv filestream and splits the row into a vector of strings, where each string is the value from the csv file, delimited by a comma (i.e. each column of the row).

Return
a vector where each element corresponds to the respective row from the csv.
Parameters
  • str: the input stream from the csv file.