Mercurial > hg > vamp-plugin-sdk
diff rdf/generator/template-generator.cpp @ 194:27cfae2a4155
* Make summarising adapter debug optional
* Tidy up template generator output a bit
* Clarify an error message
author | cannam |
---|---|
date | Tue, 30 Sep 2008 13:24:41 +0000 |
parents | 006a775133b1 |
children | f9b4f60280db |
line wrap: on
line diff
--- a/rdf/generator/template-generator.cpp Mon Sep 22 13:40:00 2008 +0000 +++ b/rdf/generator/template-generator.cpp Tue Sep 30 13:24:41 2008 +0000 @@ -102,13 +102,14 @@ if (plugin->getInputDomain() == Vamp::Plugin::FrequencyDomain) res+=" vamp:input_domain vamp:FrequencyDomain ;\n\n"; else - res+=" vamp:input_domain vamp:TimeDomain ;\n\n"; + res+=" vamp:input_domain vamp:TimeDomain ;\n"; Plugin::ParameterList params = plugin->getParameterDescriptors(); + if (!params.empty()) res+="\n"; for (Plugin::ParameterList::const_iterator i = params.begin(); i != params.end(); i++) res+=" vamp:parameter plugbase:"+plugin->getIdentifier()+"_param_"+(*i).identifier+" ;\n"; - res+="\n"; + if (!params.empty()) res+="\n"; Plugin::OutputList outputs = plugin->getOutputDescriptors(); for (Plugin::OutputList::const_iterator i = outputs.begin(); i!= outputs.end(); i++)