1 #ifndef GUARD_surveypxbimagereader_h
2 #define GUARD_surveypxbimagereader_h
31 std::cerr <<
"Cannot open file " <<
filename <<
" - operation aborted." << std::endl;
47 measurements.reserve(reserve);
53 while (std::getline(
infile, aLine)) {
56 std::string::iterator iter =
std::find(aLine.begin(), aLine.end(),
'#');
57 std::copy(aLine.begin(), iter, std::back_inserter(stripped));
61 if (curMeas.isValid()) {
62 measurements.push_back(curMeas);
66 return measurements.size();