Mercurial > hg > svcore
diff plugin/PluginXml.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 |
line wrap: on
line diff
--- a/plugin/PluginXml.cpp Thu May 12 17:31:24 2011 +0100 +++ b/plugin/PluginXml.cpp Mon May 16 17:19:09 2011 +0100 @@ -81,9 +81,9 @@ for (Vamp::PluginBase::ParameterList::const_iterator i = parameters.begin(); i != parameters.end(); ++i) { -// std::cerr << "PluginXml::toXml: parameter name \"" +// DEBUG << "PluginXml::toXml: parameter name \"" // << i->name.c_str() << "\" has value " -// << m_plugin->getParameter(i->name) << std::endl; +// << m_plugin->getParameter(i->name) << endl; stream << QString("param-%1=\"%2\" ") .arg(stripInvalidParameterNameCharacters(QString(i->identifier.c_str()))) @@ -174,15 +174,15 @@ (QString(i->identifier.c_str()))); if (attrs.value(pname) == "") { -// std::cerr << "PluginXml::setParameters: no parameter \"" << i->name << "\" (attribute \"" << name << "\")" << std::endl; +// DEBUG << "PluginXml::setParameters: no parameter \"" << i->name << "\" (attribute \"" << name << "\")" << endl; continue; } bool ok; float value = attrs.value(pname).trimmed().toFloat(&ok); if (ok) { -// std::cerr << "PluginXml::setParameters: setting parameter \"" -// << i->identifier << "\" to value " << value << std::endl; +// DEBUG << "PluginXml::setParameters: setting parameter \"" +// << i->identifier << "\" to value " << value << endl; m_plugin->setParameter(i->identifier, value); } else { std::cerr << "WARNING: PluginXml::setParameters: Invalid value \"" << attrs.value(pname) << "\" for parameter \"" << i->identifier << "\" (attribute \"" << pname << "\")" << std::endl; @@ -199,8 +199,8 @@ int errorLine; int errorColumn; -// std::cerr << "PluginXml::setParametersFromXml: XML is \"" -// << xml.toLocal8Bit().data() << "\"" << std::endl; +// DEBUG << "PluginXml::setParametersFromXml: XML is \"" +// << xml.toLocal8Bit().data() << "\"" << endl; if (!doc.setContent(xml, false, &error, &errorLine, &errorColumn)) { std::cerr << "PluginXml::setParametersFromXml: Error in parsing XML: " << error << " at line " << errorLine << ", column " << errorColumn << std::endl; @@ -217,8 +217,7 @@ for (unsigned int i = 0; i < attrNodes.length(); ++i) { QDomAttr attr = attrNodes.item(i).toAttr(); if (attr.isNull()) continue; -// std::cerr << "PluginXml::setParametersFromXml: Adding attribute \"" << attr.name().toStdString() -// << "\" with value \"" << attr.value() << "\"" << std::endl; +// DEBUG << "PluginXml::setParametersFromXml: Adding attribute \"" << attr.name()// << "\" with value \"" << attr.value() << "\"" << endl; attrs.append(attr.name(), "", "", attr.value()); }