comparison rdf/PluginRDFDescription.cpp @ 494:81963c51b488

* Add ability to export a transform structure as RDF -- for use when exporting data from runner, so as to refer back to the generating transform from the audio features rdf * some improvements to pane & layer management when importing rdf, but it's all still a big hack here
author Chris Cannam
date Tue, 25 Nov 2008 17:46:02 +0000
parents 82ab61fa9223
children 0944d13689b2
comparison
equal deleted inserted replaced
493:3931711b5671 494:81963c51b488
145 { 145 {
146 if (m_outputUnitMap.find(outputId) == m_outputUnitMap.end()) { 146 if (m_outputUnitMap.find(outputId) == m_outputUnitMap.end()) {
147 return ""; 147 return "";
148 } 148 }
149 return m_outputUnitMap.find(outputId)->second; 149 return m_outputUnitMap.find(outputId)->second;
150 }
151
152 QString
153 PluginRDFDescription::getOutputUri(QString outputId) const
154 {
155 if (m_outputUriMap.find(outputId) == m_outputUriMap.end()) {
156 return "";
157 }
158 return m_outputUriMap.find(outputId)->second;
150 } 159 }
151 160
152 bool 161 bool
153 PluginRDFDescription::index() 162 PluginRDFDescription::index()
154 { 163 {
312 321
313 QString outputUri = results[i]["output"].value; 322 QString outputUri = results[i]["output"].value;
314 QString outputId = results[i]["output_id"].value; 323 QString outputId = results[i]["output_id"].value;
315 QString outputType = results[i]["output_type"].value; 324 QString outputType = results[i]["output_type"].value;
316 325
326 m_outputUriMap[outputId] = outputUri;
327
317 if (outputType.contains("DenseOutput")) { 328 if (outputType.contains("DenseOutput")) {
318 m_outputDispositions[outputId] = OutputDense; 329 m_outputDispositions[outputId] = OutputDense;
319 } else if (outputType.contains("SparseOutput")) { 330 } else if (outputType.contains("SparseOutput")) {
320 m_outputDispositions[outputId] = OutputSparse; 331 m_outputDispositions[outputId] = OutputSparse;
321 } else if (outputType.contains("TrackLevelOutput")) { 332 } else if (outputType.contains("TrackLevelOutput")) {