comparison transform/Transform.cpp @ 687:06f13a3b9e9e debug-output

Convert many cerrs to DEBUGs
author Chris Cannam
date Mon, 16 May 2011 17:19:09 +0100
parents b4a8d8221eaf
children 1424aa29ae95
comparison
equal deleted inserted replaced
686:b4a8d8221eaf 687:06f13a3b9e9e
122 m_windowType == t.m_windowType && 122 m_windowType == t.m_windowType &&
123 m_startTime == t.m_startTime && 123 m_startTime == t.m_startTime &&
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 DEBUG << "Transform::operator==: identical = " << identical << endl;
128 std::cerr << "A = " << std::endl; 128 std::cerr << "A = " << std::endl;
129 std::cerr << toXmlString() << 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() << std::endl; 131 std::cerr << t.toXmlString() << std::endl;
132 */ 132 */
258 } 258 }
259 259
260 void 260 void
261 Transform::setParameter(QString name, float value) 261 Transform::setParameter(QString name, float value)
262 { 262 {
263 // std::cerr << "Transform::setParameter(" << name.toStdString() 263 // DEBUG << "Transform::setParameter(" << name// << ") -> " << value << endl;
264 // << ") -> " << value << std::endl;
265 m_parameters[name] = value; 264 m_parameters[name] = value;
266 } 265 }
267 266
268 const Transform::ConfigurationMap & 267 const Transform::ConfigurationMap &
269 Transform::getConfiguration() const 268 Transform::getConfiguration() const
278 } 277 }
279 278
280 void 279 void
281 Transform::setConfigurationValue(QString name, QString value) 280 Transform::setConfigurationValue(QString name, QString value)
282 { 281 {
283 std::cerr << "Transform::setConfigurationValue(" << name.toStdString() 282 DEBUG << "Transform::setConfigurationValue(" << name << ") -> " << value << endl;
284 << ") -> " << value << std::endl;
285 m_configuration[name] = value; 283 m_configuration[name] = value;
286 } 284 }
287 285
288 QString 286 QString
289 Transform::getPluginVersion() const 287 Transform::getPluginVersion() const
461 if (str == "variance") return Variance; 459 if (str == "variance") return Variance;
462 if (str == "standard-deviation" || str == "standardDeviation" || 460 if (str == "standard-deviation" || str == "standardDeviation" ||
463 str == "standard deviation" || str == "sd") return StandardDeviation; 461 str == "standard deviation" || str == "sd") return StandardDeviation;
464 if (str == "count") return Count; 462 if (str == "count") return Count;
465 if (str == "") return NoSummary; 463 if (str == "") return NoSummary;
466 std::cerr << "Transform::stringToSummaryType: unknown summary type \"" 464 DEBUG << "Transform::stringToSummaryType: unknown summary type \""
467 << str << "\"" << std::endl; 465 << str << "\"" << endl;
468 return NoSummary; 466 return NoSummary;
469 } 467 }
470 468
471 QString 469 QString
472 Transform::summaryTypeToString(SummaryType type) 470 Transform::summaryTypeToString(SummaryType type)
481 case Variance: return "variance"; 479 case Variance: return "variance";
482 case StandardDeviation: return "sd"; 480 case StandardDeviation: return "sd";
483 case Count: return "count"; 481 case Count: return "count";
484 case NoSummary: return ""; 482 case NoSummary: return "";
485 default: 483 default:
486 std::cerr << "Transform::summaryTypeToString: unexpected summary type " 484 DEBUG << "Transform::summaryTypeToString: unexpected summary type "
487 << int(type) << std::endl; 485 << int(type) << endl;
488 return ""; 486 return "";
489 } 487 }
490 } 488 }
491 489
492 void 490 void