Mercurial > hg > sonic-annotator
diff runner/FeatureWriterFactory.cpp @ 154:6ff4da31db8b labfile
Implement .lab file writer
author | Chris Cannam |
---|---|
date | Tue, 14 Oct 2014 17:30:44 +0100 |
parents | 2260947be4aa |
children | 4b19d824a213 |
line wrap: on
line diff
--- a/runner/FeatureWriterFactory.cpp Tue Oct 14 11:13:31 2014 +0100 +++ b/runner/FeatureWriterFactory.cpp Tue Oct 14 17:30:44 2014 +0100 @@ -17,10 +17,13 @@ #include "FeatureWriterFactory.h" #include "DefaultFeatureWriter.h" + #include "rdf/RDFFeatureWriter.h" +#include "transform/CSVFeatureWriter.h" + #include "AudioDBFeatureWriter.h" #include "MIDIFeatureWriter.h" -#include "transform/CSVFeatureWriter.h" +#include "LabFeatureWriter.h" set<string> FeatureWriterFactory::getWriterTags() @@ -30,6 +33,7 @@ tags.insert("rdf"); tags.insert("audiodb"); tags.insert("csv"); + tags.insert("lab"); tags.insert("midi"); return tags; } @@ -45,6 +49,8 @@ return new AudioDBFeatureWriter(); } else if (tag == "csv") { return new CSVFeatureWriter(); + } else if (tag == "lab") { + return new LabFeatureWriter(); } else if (tag == "midi") { return new MIDIFeatureWriter(); }