comparison transform/FeatureWriter.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 1aefb666ecfc
comparison
equal deleted inserted replaced
503:3176aade1a03 504:3376dc26dece
51 51
52 virtual void setParameters(map<string, string> &params) { 52 virtual void setParameters(map<string, string> &params) {
53 return; 53 return;
54 } 54 }
55 55
56 struct TrackMetadata {
57 QString title;
58 QString maker;
59 };
60 virtual void setTrackMetadata(QString trackid, TrackMetadata metadata) { }
61
56 // may throw FailedToOpenFile or other exceptions 62 // may throw FailedToOpenFile or other exceptions
57 63
58 virtual void write(QString trackid, 64 virtual void write(QString trackid,
59 const Transform &transform, 65 const Transform &transform,
60 const Vamp::Plugin::OutputDescriptor &output, 66 const Vamp::Plugin::OutputDescriptor &output,