comparison data/model/Model.cpp @ 1668:1d1a16968f03 osc-script

A bit more debug output
author Chris Cannam
date Tue, 26 Mar 2019 14:34:21 +0000
parents 70e172e6cc59
children dfcd05e8bd2f
comparison
equal deleted inserted replaced
1667:8467bccdc403 1668:1d1a16968f03
22 22
23 const int Model::COMPLETION_UNKNOWN = -1; 23 const int Model::COMPLETION_UNKNOWN = -1;
24 24
25 Model::~Model() 25 Model::~Model()
26 { 26 {
27 // SVDEBUG << "Model::~Model(" << this << ")" << endl; 27 SVDEBUG << "Model::~Model(" << this << ")" << endl;
28 28
29 if (!m_aboutToDelete) { 29 if (!m_aboutToDelete) {
30 SVDEBUG << "NOTE: Model(" << this << ", \"" 30 SVDEBUG << "NOTE: Model(" << this << ", \""
31 << objectName() << "\", type uri <" 31 << objectName() << "\", type uri <"
32 << m_typeUri << ">)::~Model(): Model deleted " 32 << m_typeUri << ">)::~Model(): Model deleted "
73 } 73 }
74 74
75 void 75 void
76 Model::aboutToDelete() 76 Model::aboutToDelete()
77 { 77 {
78 // SVDEBUG << "Model(" << this << ", \"" 78 SVDEBUG << "Model(" << this << ", \""
79 // << objectName() << "\", type uri <" 79 << objectName() << "\", type name \""
80 // << m_typeUri << ">)::aboutToDelete()" << endl; 80 << getTypeName() << "\", type uri <"
81 << m_typeUri << ">)::aboutToDelete()" << endl;
81 82
82 if (m_aboutToDelete) { 83 if (m_aboutToDelete) {
83 SVDEBUG << "WARNING: Model(" << this << ", \"" 84 SVDEBUG << "WARNING: Model(" << this << ", \""
84 << objectName() << "\", type uri <" 85 << objectName() << "\", type uri <"
85 << m_typeUri << ">)::aboutToDelete: " 86 << m_typeUri << ">)::aboutToDelete: "
98 } 99 }
99 100
100 void 101 void
101 Model::setAlignment(AlignmentModel *alignment) 102 Model::setAlignment(AlignmentModel *alignment)
102 { 103 {
104 SVDEBUG << "Model(" << this << "): accepting alignment model "
105 << alignment << endl;
106
103 if (m_alignment) { 107 if (m_alignment) {
104 m_alignment->aboutToDelete(); 108 m_alignment->aboutToDelete();
105 delete m_alignment; 109 delete m_alignment;
106 } 110 }
107 111