Mercurial > hg > vamp-plugin-sdk
comparison rdf/generator/template-generator.cpp @ 156:aa258ff1511e
fix the generator with the new changes
author | dpastor |
---|---|
date | Wed, 25 Jun 2008 12:10:48 +0000 |
parents | d7dcc37161e6 |
children | 62ab43ce9790 |
comparison
equal
deleted
inserted
replaced
155:b734b032558c | 156:aa258ff1511e |
---|---|
105 res+=" vamp:input_domain vamp:TimeDomain ;\n\n"; | 105 res+=" vamp:input_domain vamp:TimeDomain ;\n\n"; |
106 | 106 |
107 | 107 |
108 Plugin::ParameterList params = plugin->getParameterDescriptors(); | 108 Plugin::ParameterList params = plugin->getParameterDescriptors(); |
109 for (Plugin::ParameterList::const_iterator i = params.begin(); i != params.end(); i++) | 109 for (Plugin::ParameterList::const_iterator i = params.begin(); i != params.end(); i++) |
110 res+=" vamp:parameter_descriptor plugbase:"+plugin->getIdentifier()+"_param_"+(*i).identifier+" ;\n"; | 110 res+=" vamp:parameter plugbase:"+plugin->getIdentifier()+"_param_"+(*i).identifier+" ;\n"; |
111 res+="\n"; | 111 res+="\n"; |
112 | 112 |
113 Plugin::OutputList outputs = plugin->getOutputDescriptors(); | 113 Plugin::OutputList outputs = plugin->getOutputDescriptors(); |
114 for (Plugin::OutputList::const_iterator i = outputs.begin(); i!= outputs.end(); i++) | 114 for (Plugin::OutputList::const_iterator i = outputs.begin(); i!= outputs.end(); i++) |
115 res+=" vamp:output_descriptor plugbase:"+plugin->getIdentifier()+"_output_"+(*i).identifier+" ;\n"; | 115 res+=" vamp:output plugbase:"+plugin->getIdentifier()+"_output_"+(*i).identifier+" ;\n"; |
116 res+=" .\n"; | 116 res+=" .\n"; |
117 | 117 |
118 return res; | 118 return res; |
119 } | 119 } |
120 | 120 |
122 { | 122 { |
123 | 123 |
124 //FIXME: dc:format and vamp:unit are the same??? | 124 //FIXME: dc:format and vamp:unit are the same??? |
125 if(p.isQuantized){ | 125 if(p.isQuantized){ |
126 string res=\ | 126 string res=\ |
127 "plugbase:"+plugin->getIdentifier()+"_param_"+p.identifier+" a vamp:QuantizedParameterDescriptor ;\n\ | 127 "plugbase:"+plugin->getIdentifier()+"_param_"+p.identifier+" a vamp:QuantizedParameter ;\n\ |
128 vamp:identifier \""+p.identifier+"\" ;\n\ | 128 vamp:identifier \""+p.identifier+"\" ;\n\ |
129 dc:title \""+p.name+"\" ;\n\ | 129 dc:title \""+p.name+"\" ;\n\ |
130 dc:format \""+p.unit+"\" ;\n\ | 130 dc:format \""+p.unit+"\" ;\n\ |
131 vamp:min_value "+to_string(p.minValue)+" ;\n\ | 131 vamp:min_value "+to_string(p.minValue)+" ;\n\ |
132 vamp:max_value "+to_string(p.maxValue)+" ;\n\ | 132 vamp:max_value "+to_string(p.maxValue)+" ;\n\ |
146 | 146 |
147 return res; | 147 return res; |
148 | 148 |
149 }else{ | 149 }else{ |
150 string res=\ | 150 string res=\ |
151 "plugbase:"+plugin->getIdentifier()+"_param_"+p.identifier+" a vamp:ParameterDescriptor ;\n\ | 151 "plugbase:"+plugin->getIdentifier()+"_param_"+p.identifier+" a vamp:Parameter ;\n\ |
152 vamp:identifier \""+p.identifier+"\" ;\n\ | 152 vamp:identifier \""+p.identifier+"\" ;\n\ |
153 dc:title \""+p.name+"\" ;\n\ | 153 dc:title \""+p.name+"\" ;\n\ |
154 dc:format \""+p.unit+"\" ;\n\ | 154 dc:format \""+p.unit+"\" ;\n\ |
155 vamp:min_value "+to_string(p.minValue)+" ;\n\ | 155 vamp:min_value "+to_string(p.minValue)+" ;\n\ |
156 vamp:max_value "+to_string(p.maxValue)+" ;\n\ | 156 vamp:max_value "+to_string(p.maxValue)+" ;\n\ |