comparison framework/TransformUserConfigurator.cpp @ 228:67cea66bd588 debug-output

Remove most toStdString calls (no longer needed, with debug header)
author Chris Cannam
date Thu, 12 May 2011 17:31:56 +0100
parents 15057cf59da5
children 8c13e8219903
comparison
equal deleted inserted replaced
219:85e59c901de9 228:67cea66bd588
79 frequency = (vp->getInputDomain() == Vamp::Plugin::FrequencyDomain); 79 frequency = (vp->getInputDomain() == Vamp::Plugin::FrequencyDomain);
80 80
81 std::vector<Vamp::Plugin::OutputDescriptor> od = 81 std::vector<Vamp::Plugin::OutputDescriptor> od =
82 vp->getOutputDescriptors(); 82 vp->getOutputDescriptors();
83 83
84 std::cerr << "configure: looking for output: " << output.toStdString() << std::endl; 84 std::cerr << "configure: looking for output: " << output << std::endl;
85 85
86 if (od.size() > 1) { 86 if (od.size() > 1) {
87 for (size_t i = 0; i < od.size(); ++i) { 87 for (size_t i = 0; i < od.size(); ++i) {
88 if (od[i].identifier == output.toStdString()) { 88 if (od[i].identifier == output.toStdString()) {
89 outputLabel = od[i].name.c_str(); 89 outputLabel = od[i].name.c_str();
171 171
172 QString selectedInput = dialog->getInputModel(); 172 QString selectedInput = dialog->getInputModel();
173 if (selectedInput != "") { 173 if (selectedInput != "") {
174 if (modelMap.contains(selectedInput)) { 174 if (modelMap.contains(selectedInput)) {
175 inputModel = modelMap.value(selectedInput); 175 inputModel = modelMap.value(selectedInput);
176 std::cerr << "Found selected input \"" << selectedInput.toStdString() << "\" in model map, result is " << inputModel << std::endl; 176 std::cerr << "Found selected input \"" << selectedInput << "\" in model map, result is " << inputModel << std::endl;
177 } else { 177 } else {
178 std::cerr << "Failed to find selected input \"" << selectedInput.toStdString() << "\" in model map" << std::endl; 178 std::cerr << "Failed to find selected input \"" << selectedInput << "\" in model map" << std::endl;
179 } 179 }
180 } else { 180 } else {
181 std::cerr << "Selected input empty: \"" << selectedInput.toStdString() << "\"" << std::endl; 181 std::cerr << "Selected input empty: \"" << selectedInput << "\"" << std::endl;
182 } 182 }
183 183
184 // Write parameters back to transform object 184 // Write parameters back to transform object
185 TransformFactory::getInstance()-> 185 TransformFactory::getInstance()->
186 setParametersFromPlugin(transform, plugin); 186 setParametersFromPlugin(transform, plugin);