comparison data/fileio/CSVFileReader.cpp @ 689:573d45e9487b

Merge from debug-output branch
author Chris Cannam
date Tue, 14 Jun 2011 14:47:59 +0100
parents 06f13a3b9e9e
children 1424aa29ae95
comparison
equal deleted inserted replaced
688:be43b2fe68e8 689:573d45e9487b
57 } 57 }
58 } 58 }
59 59
60 CSVFileReader::~CSVFileReader() 60 CSVFileReader::~CSVFileReader()
61 { 61 {
62 std::cerr << "CSVFileReader::~CSVFileReader: file is " << m_file << std::endl; 62 DEBUG << "CSVFileReader::~CSVFileReader: file is " << m_file << endl;
63 63
64 if (m_file) { 64 if (m_file) {
65 std::cerr << "CSVFileReader::CSVFileReader: Closing file" << std::endl; 65 DEBUG << "CSVFileReader::CSVFileReader: Closing file" << endl;
66 m_file->close(); 66 m_file->close();
67 } 67 }
68 delete m_file; 68 delete m_file;
69 } 69 }
70 70
335 std::cerr << "WARNING: CSVFileReader::load: " 335 std::cerr << "WARNING: CSVFileReader::load: "
336 << "Non-numeric value \"" 336 << "Non-numeric value \""
337 << list[i].toStdString() 337 << list[i].toStdString()
338 << "\" in data line " << lineno+1 338 << "\" in data line " << lineno+1
339 << ":" << std::endl; 339 << ":" << std::endl;
340 std::cerr << line.toStdString() << std::endl; 340 std::cerr << line << std::endl;
341 ++warnings; 341 ++warnings;
342 } else if (warnings == warnLimit) { 342 } else if (warnings == warnLimit) {
343 // std::cerr << "WARNING: Too many warnings" << std::endl; 343 // std::cerr << "WARNING: Too many warnings" << std::endl;
344 } 344 }
345 } 345 }
346 } 346 }
347 347
348 // std::cerr << "Setting bin values for count " << lineno << ", frame " 348 // DEBUG << "Setting bin values for count " << lineno << ", frame "
349 // << frameNo << ", time " << RealTime::frame2RealTime(frameNo, sampleRate) << std::endl; 349 // << frameNo << ", time " << RealTime::frame2RealTime(frameNo, sampleRate) << endl;
350 350
351 model3->setColumn(lineno, values); 351 model3->setColumn(lineno, values);
352 } 352 }
353 353
354 ++lineno; 354 ++lineno;