comparison 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
comparison
equal deleted inserted replaced
503:3176aade1a03 504:3376dc26dece
45 virtual ~RDFFeatureWriter(); 45 virtual ~RDFFeatureWriter();
46 46
47 virtual ParameterList getSupportedParameters() const; 47 virtual ParameterList getSupportedParameters() const;
48 virtual void setParameters(map<string, string> &params); 48 virtual void setParameters(map<string, string> &params);
49 49
50 virtual void setTrackMetadata(QString trackid, TrackMetadata metadata);
51
50 virtual void write(QString trackid, 52 virtual void write(QString trackid,
51 const Transform &transform, 53 const Transform &transform,
52 const Vamp::Plugin::OutputDescriptor &output, 54 const Vamp::Plugin::OutputDescriptor &output,
53 const Vamp::Plugin::FeatureList &features, 55 const Vamp::Plugin::FeatureList &features,
54 std::string summaryType = ""); 56 std::string summaryType = "");
56 virtual void finish(); 58 virtual void finish();
57 59
58 private: 60 private:
59 typedef map<QString, PluginRDFDescription> RDFDescriptionMap; // by plugin id 61 typedef map<QString, PluginRDFDescription> RDFDescriptionMap; // by plugin id
60 RDFDescriptionMap m_rdfDescriptions; 62 RDFDescriptionMap m_rdfDescriptions;
63
64 typedef map<QString, TrackMetadata> TrackMetadataMap;
65 TrackMetadataMap m_metadata;
61 66
62 void writePrefixes(QTextStream *); 67 void writePrefixes(QTextStream *);
63 void writeSignalDescription(QTextStream *, QString); 68 void writeSignalDescription(QTextStream *, QString);
64 void writeLocalFeatureTypes(QTextStream *, 69 void writeLocalFeatureTypes(QTextStream *,
65 const Transform &, 70 const Transform &,