17 std::ifstream measurements_file;
18 measurements_file.open(measurement_filename.c_str(), std::ios::in);
19 if(!measurements_file) {
21 "Error opening file " + measurement_filename);
24 std::copy(std::istream_iterator<Measurement>(measurements_file),
25 std::istream_iterator<Measurement>(),
28 measurements_file.close();
std::istream & operator>>(std::istream &stream, Measurement &measurement)
static const std::string name
std::vector< Measurement > measurements_
void parseMeasurements(std::string measurement_filename)