Mercurial > hg > svcore
diff rdf/RDFFeatureWriter.h @ 504:3376dc26dece
* Add FeatureWriter method to set basic track metadata; write it out from
RDFFeatureWriter if present
author | Chris Cannam |
---|---|
date | Fri, 05 Dec 2008 11:09:44 +0000 |
parents | fdf5930b7ccc |
children | 0944d13689b2 |
line wrap: on
line diff
--- a/rdf/RDFFeatureWriter.h Fri Dec 05 09:40:42 2008 +0000 +++ b/rdf/RDFFeatureWriter.h Fri Dec 05 11:09:44 2008 +0000 @@ -47,6 +47,8 @@ virtual ParameterList getSupportedParameters() const; virtual void setParameters(map<string, string> ¶ms); + virtual void setTrackMetadata(QString trackid, TrackMetadata metadata); + virtual void write(QString trackid, const Transform &transform, const Vamp::Plugin::OutputDescriptor &output, @@ -59,6 +61,9 @@ typedef map<QString, PluginRDFDescription> RDFDescriptionMap; // by plugin id RDFDescriptionMap m_rdfDescriptions; + typedef map<QString, TrackMetadata> TrackMetadataMap; + TrackMetadataMap m_metadata; + void writePrefixes(QTextStream *); void writeSignalDescription(QTextStream *, QString); void writeLocalFeatureTypes(QTextStream *,