LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
fillSourceList.cc
Go to the documentation of this file.
2 
3 void
4 art::detail::fillSourceList(std::istream& is,
5  std::vector<std::string>& source_list)
6 {
7  for (std::string line; std::getline(is, line);) {
8  auto const comment_start = line.find('#');
9  if (comment_start != std::string::npos)
10  line.erase(comment_start);
11  if (!line.empty())
12  source_list.push_back(line);
13  }
14 }
void fillSourceList(std::istream &ifs, std::vector< std::string > &source_list)