Mercurial > hg > vamp-plugin-sdk
comparison 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 |
comparison
equal
deleted
inserted
replaced
193:20393d30baee | 194:27cfae2a4155 |
---|---|
100 vamp:vamp_API_version vamp:api_version_"+to_string(plugin->getVampApiVersion())+" ;\n\ | 100 vamp:vamp_API_version vamp:api_version_"+to_string(plugin->getVampApiVersion())+" ;\n\ |
101 owl:versionInfo \""+to_string(plugin->getPluginVersion())+"\" ;\n"; | 101 owl:versionInfo \""+to_string(plugin->getPluginVersion())+"\" ;\n"; |
102 if (plugin->getInputDomain() == Vamp::Plugin::FrequencyDomain) | 102 if (plugin->getInputDomain() == Vamp::Plugin::FrequencyDomain) |
103 res+=" vamp:input_domain vamp:FrequencyDomain ;\n\n"; | 103 res+=" vamp:input_domain vamp:FrequencyDomain ;\n\n"; |
104 else | 104 else |
105 res+=" vamp:input_domain vamp:TimeDomain ;\n\n"; | 105 res+=" vamp:input_domain vamp:TimeDomain ;\n"; |
106 | 106 |
107 | 107 |
108 Plugin::ParameterList params = plugin->getParameterDescriptors(); | 108 Plugin::ParameterList params = plugin->getParameterDescriptors(); |
109 if (!params.empty()) res+="\n"; | |
109 for (Plugin::ParameterList::const_iterator i = params.begin(); i != params.end(); i++) | 110 for (Plugin::ParameterList::const_iterator i = params.begin(); i != params.end(); i++) |
110 res+=" vamp:parameter plugbase:"+plugin->getIdentifier()+"_param_"+(*i).identifier+" ;\n"; | 111 res+=" vamp:parameter plugbase:"+plugin->getIdentifier()+"_param_"+(*i).identifier+" ;\n"; |
111 res+="\n"; | 112 if (!params.empty()) res+="\n"; |
112 | 113 |
113 Plugin::OutputList outputs = plugin->getOutputDescriptors(); | 114 Plugin::OutputList outputs = plugin->getOutputDescriptors(); |
114 for (Plugin::OutputList::const_iterator i = outputs.begin(); i!= outputs.end(); i++) | 115 for (Plugin::OutputList::const_iterator i = outputs.begin(); i!= outputs.end(); i++) |
115 res+=" vamp:output plugbase:"+plugin->getIdentifier()+"_output_"+(*i).identifier+" ;\n"; | 116 res+=" vamp:output plugbase:"+plugin->getIdentifier()+"_output_"+(*i).identifier+" ;\n"; |
116 res+=" .\n"; | 117 res+=" .\n"; |