Mercurial > hg > svcore
diff data/model/AlignmentModel.cpp @ 689:573d45e9487b
Merge from debug-output branch
author | Chris Cannam |
---|---|
date | Tue, 14 Jun 2011 14:47:59 +0100 |
parents | 06f13a3b9e9e |
children | 1424aa29ae95 |
line wrap: on
line diff
--- a/data/model/AlignmentModel.cpp Tue Jun 14 13:43:03 2011 +0100 +++ b/data/model/AlignmentModel.cpp Tue Jun 14 14:47:59 2011 +0100 @@ -141,7 +141,7 @@ AlignmentModel::toReference(size_t frame) const { #ifdef DEBUG_ALIGNMENT_MODEL - std::cerr << "AlignmentModel::toReference(" << frame << ")" << std::endl; + DEBUG << "AlignmentModel::toReference(" << frame << ")" << endl; #endif if (!m_path) { if (!m_rawPath) return frame; @@ -154,7 +154,7 @@ AlignmentModel::fromReference(size_t frame) const { #ifdef DEBUG_ALIGNMENT_MODEL - std::cerr << "AlignmentModel::fromReference(" << frame << ")" << std::endl; + DEBUG << "AlignmentModel::fromReference(" << frame << ")" << endl; #endif if (!m_reversePath) { if (!m_rawPath) return frame; @@ -194,8 +194,8 @@ m_rawPath->isReady(&completion); #ifdef DEBUG_ALIGNMENT_MODEL - std::cerr << "AlignmentModel::pathCompletionChanged: completion = " - << completion << std::endl; + DEBUG << "AlignmentModel::pathCompletionChanged: completion = " + << completion << endl; #endif m_pathComplete = (completion == 100); @@ -242,7 +242,7 @@ } #ifdef DEBUG_ALIGNMENT_MODEL - std::cerr << "AlignmentModel::constructPath: " << m_path->getPointCount() << " points, at least " << (2 * m_path->getPointCount() * (3 * sizeof(void *) + sizeof(int) + sizeof(PathPoint))) << " bytes" << std::endl; + DEBUG << "AlignmentModel::constructPath: " << m_path->getPointCount() << " points, at least " << (2 * m_path->getPointCount() * (3 * sizeof(void *) + sizeof(int) + sizeof(PathPoint))) << " bytes" << endl; #endif } @@ -273,7 +273,7 @@ } #ifdef DEBUG_ALIGNMENT_MODEL - std::cerr << "AlignmentModel::constructReversePath: " << m_reversePath->getPointCount() << " points, at least " << (2 * m_reversePath->getPointCount() * (3 * sizeof(void *) + sizeof(int) + sizeof(PathPoint))) << " bytes" << std::endl; + DEBUG << "AlignmentModel::constructReversePath: " << m_reversePath->getPointCount() << " points, at least " << (2 * m_reversePath->getPointCount() * (3 * sizeof(void *) + sizeof(int) + sizeof(PathPoint))) << " bytes" << endl; #endif } @@ -291,13 +291,13 @@ if (points.empty()) { #ifdef DEBUG_ALIGNMENT_MODEL - std::cerr << "AlignmentModel::align: No points" << std::endl; + DEBUG << "AlignmentModel::align: No points" << endl; #endif return frame; } #ifdef DEBUG_ALIGNMENT_MODEL - std::cerr << "AlignmentModel::align: frame " << frame << " requested" << std::endl; + DEBUG << "AlignmentModel::align: frame " << frame << " requested" << endl; #endif PathModel::Point point(frame); @@ -340,7 +340,7 @@ } #ifdef DEBUG_ALIGNMENT_MODEL - std::cerr << "AlignmentModel::align: resultFrame = " << resultFrame << std::endl; + DEBUG << "AlignmentModel::align: resultFrame = " << resultFrame << endl; #endif return resultFrame; @@ -353,12 +353,12 @@ delete m_path; m_path = path; #ifdef DEBUG_ALIGNMENT_MODEL - std::cerr << "AlignmentModel::setPath: path = " << m_path << std::endl; + DEBUG << "AlignmentModel::setPath: path = " << m_path << endl; #endif constructReversePath(); #ifdef DEBUG_ALIGNMENT_MODEL - std::cerr << "AlignmentModel::setPath: after construction path = " - << m_path << ", rpath = " << m_reversePath << std::endl; + DEBUG << "AlignmentModel::setPath: after construction path = " + << m_path << ", rpath = " << m_reversePath << endl; #endif } @@ -368,7 +368,7 @@ QString extraAttributes) const { if (!m_path) { - std::cerr << "AlignmentModel::toXml: no path" << std::endl; + DEBUG << "AlignmentModel::toXml: no path" << endl; return; }