comparison transform/Transform.cpp @ 686:b4a8d8221eaf debug-output

Remove most toStdString calls (no longer needed, with debug header)
author Chris Cannam
date Thu, 12 May 2011 17:31:24 +0100
parents ecbd99d5d2c4
children 06f13a3b9e9e
comparison
equal deleted inserted replaced
685:99222d4bfc78 686:b4a8d8221eaf
52 int errorLine; 52 int errorLine;
53 int errorColumn; 53 int errorColumn;
54 54
55 if (!doc.setContent(xml, false, &error, &errorLine, &errorColumn)) { 55 if (!doc.setContent(xml, false, &error, &errorLine, &errorColumn)) {
56 std::cerr << "Transform::Transform: Error in parsing XML: " 56 std::cerr << "Transform::Transform: Error in parsing XML: "
57 << error.toStdString() << " at line " << errorLine 57 << error << " at line " << errorLine
58 << ", column " << errorColumn << std::endl; 58 << ", column " << errorColumn << std::endl;
59 std::cerr << "Input follows:" << std::endl; 59 std::cerr << "Input follows:" << std::endl;
60 std::cerr << xml.toStdString() << std::endl; 60 std::cerr << xml << std::endl;
61 std::cerr << "Input ends." << std::endl; 61 std::cerr << "Input ends." << std::endl;
62 return; 62 return;
63 } 63 }
64 64
65 QDomElement transformElt = doc.firstChildElement("transform"); 65 QDomElement transformElt = doc.firstChildElement("transform");
124 m_duration == t.m_duration && 124 m_duration == t.m_duration &&
125 m_sampleRate == t.m_sampleRate; 125 m_sampleRate == t.m_sampleRate;
126 /* 126 /*
127 std::cerr << "Transform::operator==: identical = " << identical << std::endl; 127 std::cerr << "Transform::operator==: identical = " << identical << std::endl;
128 std::cerr << "A = " << std::endl; 128 std::cerr << "A = " << std::endl;
129 std::cerr << toXmlString().toStdString() << std::endl; 129 std::cerr << toXmlString() << std::endl;
130 std::cerr << "B = " << std::endl; 130 std::cerr << "B = " << std::endl;
131 std::cerr << t.toXmlString().toStdString() << std::endl; 131 std::cerr << t.toXmlString() << std::endl;
132 */ 132 */
133 return identical; 133 return identical;
134 } 134 }
135 135
136 bool 136 bool
279 279
280 void 280 void
281 Transform::setConfigurationValue(QString name, QString value) 281 Transform::setConfigurationValue(QString name, QString value)
282 { 282 {
283 std::cerr << "Transform::setConfigurationValue(" << name.toStdString() 283 std::cerr << "Transform::setConfigurationValue(" << name.toStdString()
284 << ") -> " << value.toStdString() << std::endl; 284 << ") -> " << value << std::endl;
285 m_configuration[name] = value; 285 m_configuration[name] = value;
286 } 286 }
287 287
288 QString 288 QString
289 Transform::getPluginVersion() const 289 Transform::getPluginVersion() const
462 if (str == "standard-deviation" || str == "standardDeviation" || 462 if (str == "standard-deviation" || str == "standardDeviation" ||
463 str == "standard deviation" || str == "sd") return StandardDeviation; 463 str == "standard deviation" || str == "sd") return StandardDeviation;
464 if (str == "count") return Count; 464 if (str == "count") return Count;
465 if (str == "") return NoSummary; 465 if (str == "") return NoSummary;
466 std::cerr << "Transform::stringToSummaryType: unknown summary type \"" 466 std::cerr << "Transform::stringToSummaryType: unknown summary type \""
467 << str.toStdString() << "\"" << std::endl; 467 << str << "\"" << std::endl;
468 return NoSummary; 468 return NoSummary;
469 } 469 }
470 470
471 QString 471 QString
472 Transform::summaryTypeToString(SummaryType type) 472 Transform::summaryTypeToString(SummaryType type)