Mercurial > hg > svcore
comparison data/fileio/MatrixFile.cpp @ 236:3e6fee4e4257
* remove some debug and some obsolete moc file includes
author | Chris Cannam |
---|---|
date | Mon, 26 Feb 2007 14:55:08 +0000 |
parents | 0d943a3fcc77 |
children | dc46851837d6 |
comparison
equal
deleted
inserted
replaced
235:84ff7ba52993 | 236:3e6fee4e4257 |
---|---|
132 if (newFile) { | 132 if (newFile) { |
133 resize(0, 0); // write header | 133 resize(0, 0); // write header |
134 } else { | 134 } else { |
135 size_t header[2]; | 135 size_t header[2]; |
136 if (::read(m_fd, header, 2 * sizeof(size_t)) < 0) { | 136 if (::read(m_fd, header, 2 * sizeof(size_t)) < 0) { |
137 perror("Read failed"); | 137 ::perror("MatrixFile::MatrixFile: read failed"); |
138 std::cerr << "ERROR: MatrixFile::MatrixFile: " | 138 std::cerr << "ERROR: MatrixFile::MatrixFile: " |
139 << "Failed to read header (fd " << m_fd << ", file \"" | 139 << "Failed to read header (fd " << m_fd << ", file \"" |
140 << fileName.toStdString() << "\")" << std::endl; | 140 << fileName.toStdString() << "\")" << std::endl; |
141 throw FileReadFailed(fileName); | 141 throw FileReadFailed(fileName); |
142 } | 142 } |
357 | 357 |
358 m_fdMutex.unlock(); | 358 m_fdMutex.unlock(); |
359 | 359 |
360 if (r < 0) { | 360 if (r < 0) { |
361 ::perror("MatrixFile::getColumnAt: read failed"); | 361 ::perror("MatrixFile::getColumnAt: read failed"); |
362 std::cerr << "ERROR: MatrixFile::getColumnAt: " | |
363 << "Failed to read column " << x << " (height " << m_height << ", cell size " << m_cellSize << ", fd " << m_fd << ", file \"" | |
364 << m_fileName.toStdString() << "\")" << std::endl; | |
362 throw FileReadFailed(m_fileName); | 365 throw FileReadFailed(m_fileName); |
363 } | 366 } |
364 | 367 |
365 return; | 368 return; |
366 } | 369 } |