comparison data/model/AlignmentModel.cpp @ 1561:d3814e07b8aa

Debug bits
author Chris Cannam
date Thu, 01 Nov 2018 15:01:41 +0000
parents 21f21354c834
children 70e172e6cc59
comparison
equal deleted inserted replaced
1560:21f21354c834 1561:d3814e07b8aa
99 bool 99 bool
100 AlignmentModel::isReady(int *completion) const 100 AlignmentModel::isReady(int *completion) const
101 { 101 {
102 if (!m_pathBegun && m_rawPath) { 102 if (!m_pathBegun && m_rawPath) {
103 if (completion) *completion = 0; 103 if (completion) *completion = 0;
104 #ifdef DEBUG_ALIGNMENT_MODEL
105 SVDEBUG << "AlignmentModel::isReady: path not begun" << endl;
106 #endif
104 return false; 107 return false;
105 } 108 }
106 if (m_pathComplete) { 109 if (m_pathComplete) {
107 if (completion) *completion = 100; 110 if (completion) *completion = 100;
111 #ifdef DEBUG_ALIGNMENT_MODEL
112 SVDEBUG << "AlignmentModel::isReady: path complete" << endl;
113 #endif
108 return true; 114 return true;
109 } 115 }
110 if (!m_rawPath) { 116 if (!m_rawPath) {
111 // lack of raw path could mean path is complete (in which case 117 // lack of raw path could mean path is complete (in which case
112 // m_pathComplete true above) or else no alignment has been 118 // m_pathComplete true above) or else no alignment has been
113 // set at all yet (this case) 119 // set at all yet (this case)
114 if (completion) *completion = 0; 120 if (completion) *completion = 0;
121 #ifdef DEBUG_ALIGNMENT_MODEL
122 SVDEBUG << "AlignmentModel::isReady: no raw path" << endl;
123 #endif
115 return false; 124 return false;
116 } 125 }
117 return m_rawPath->isReady(completion); 126 return m_rawPath->isReady(completion);
118 } 127 }
119 128