comparison transform/Transform.cpp @ 690:1424aa29ae95

Seems to be a bad idea to use plain DEBUG symbol on OS/X (system wants it)
author Chris Cannam
date Tue, 14 Jun 2011 15:26:52 +0100
parents 06f13a3b9e9e
children e802e550a1f2
comparison
equal deleted inserted replaced
689:573d45e9487b 690:1424aa29ae95
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 DEBUG << "Transform::operator==: identical = " << identical << endl; 127 SVDEBUG << "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 // DEBUG << "Transform::setParameter(" << name// << ") -> " << value << endl; 263 // SVDEBUG << "Transform::setParameter(" << name// << ") -> " << value << endl;
264 m_parameters[name] = value; 264 m_parameters[name] = value;
265 } 265 }
266 266
267 const Transform::ConfigurationMap & 267 const Transform::ConfigurationMap &
268 Transform::getConfiguration() const 268 Transform::getConfiguration() const
277 } 277 }
278 278
279 void 279 void
280 Transform::setConfigurationValue(QString name, QString value) 280 Transform::setConfigurationValue(QString name, QString value)
281 { 281 {
282 DEBUG << "Transform::setConfigurationValue(" << name << ") -> " << value << endl; 282 SVDEBUG << "Transform::setConfigurationValue(" << name << ") -> " << value << endl;
283 m_configuration[name] = value; 283 m_configuration[name] = value;
284 } 284 }
285 285
286 QString 286 QString
287 Transform::getPluginVersion() const 287 Transform::getPluginVersion() const
459 if (str == "variance") return Variance; 459 if (str == "variance") return Variance;
460 if (str == "standard-deviation" || str == "standardDeviation" || 460 if (str == "standard-deviation" || str == "standardDeviation" ||
461 str == "standard deviation" || str == "sd") return StandardDeviation; 461 str == "standard deviation" || str == "sd") return StandardDeviation;
462 if (str == "count") return Count; 462 if (str == "count") return Count;
463 if (str == "") return NoSummary; 463 if (str == "") return NoSummary;
464 DEBUG << "Transform::stringToSummaryType: unknown summary type \"" 464 SVDEBUG << "Transform::stringToSummaryType: unknown summary type \""
465 << str << "\"" << endl; 465 << str << "\"" << endl;
466 return NoSummary; 466 return NoSummary;
467 } 467 }
468 468
469 QString 469 QString
479 case Variance: return "variance"; 479 case Variance: return "variance";
480 case StandardDeviation: return "sd"; 480 case StandardDeviation: return "sd";
481 case Count: return "count"; 481 case Count: return "count";
482 case NoSummary: return ""; 482 case NoSummary: return "";
483 default: 483 default:
484 DEBUG << "Transform::summaryTypeToString: unexpected summary type " 484 SVDEBUG << "Transform::summaryTypeToString: unexpected summary type "
485 << int(type) << endl; 485 << int(type) << endl;
486 return ""; 486 return "";
487 } 487 }
488 } 488 }
489 489