Mercurial > hg > svcore
comparison rdf/RDFFeatureWriter.h @ 1586:841b2a3e606d
Merge from branch fix-static-analysis
author | Chris Cannam |
---|---|
date | Wed, 09 Jan 2019 15:24:38 +0000 |
parents | ad5f892c0c4d |
children |
comparison
equal
deleted
inserted
replaced
1585:9570ef94eaa3 | 1586:841b2a3e606d |
---|---|
15 published by the Free Software Foundation; either version 2 of the | 15 published by the Free Software Foundation; either version 2 of the |
16 License, or (at your option) any later version. See the file | 16 License, or (at your option) any later version. See the file |
17 COPYING included with this distribution for more information. | 17 COPYING included with this distribution for more information. |
18 */ | 18 */ |
19 | 19 |
20 #ifndef _RDF_FEATURE_WRITER_H_ | 20 #ifndef SV_RDF_FEATURE_WRITER_H |
21 #define _RDF_FEATURE_WRITER_H_ | 21 #define SV_RDF_FEATURE_WRITER_H |
22 | 22 |
23 #include <string> | 23 #include <string> |
24 #include <map> | 24 #include <map> |
25 #include <set> | 25 #include <set> |
26 | 26 |
42 { | 42 { |
43 public: | 43 public: |
44 RDFFeatureWriter(); | 44 RDFFeatureWriter(); |
45 virtual ~RDFFeatureWriter(); | 45 virtual ~RDFFeatureWriter(); |
46 | 46 |
47 virtual string getDescription() const; | 47 string getDescription() const override; |
48 | 48 |
49 virtual ParameterList getSupportedParameters() const; | 49 ParameterList getSupportedParameters() const override; |
50 virtual void setParameters(map<string, string> ¶ms); | 50 void setParameters(map<string, string> ¶ms) override; |
51 | 51 |
52 virtual void setTrackMetadata(QString trackid, TrackMetadata metadata); | 52 void setTrackMetadata(QString trackid, TrackMetadata metadata) override; |
53 | 53 |
54 virtual void write(QString trackid, | 54 void write(QString trackid, |
55 const Transform &transform, | 55 const Transform &transform, |
56 const Vamp::Plugin::OutputDescriptor &output, | 56 const Vamp::Plugin::OutputDescriptor &output, |
57 const Vamp::Plugin::FeatureList &features, | 57 const Vamp::Plugin::FeatureList &features, |
58 std::string summaryType = ""); | 58 std::string summaryType = "") override; |
59 | 59 |
60 virtual void setFixedEventTypeURI(QString uri); // something of a hack | 60 virtual void setFixedEventTypeURI(QString uri); // something of a hack |
61 | 61 |
62 virtual void finish(); | 62 void finish() override; |
63 | 63 |
64 virtual QString getWriterTag() const { return "rdf"; } | 64 QString getWriterTag() const override { return "rdf"; } |
65 | 65 |
66 private: | 66 private: |
67 typedef map<QString, PluginRDFDescription> RDFDescriptionMap; // by plugin id | 67 typedef map<QString, PluginRDFDescription> RDFDescriptionMap; // by plugin id |
68 RDFDescriptionMap m_rdfDescriptions; | 68 RDFDescriptionMap m_rdfDescriptions; |
69 | 69 |
83 return (mitr->second.title != "" || mitr->second.maker != ""); | 83 return (mitr->second.title != "" || mitr->second.maker != ""); |
84 } | 84 } |
85 | 85 |
86 QString m_fixedEventTypeURI; | 86 QString m_fixedEventTypeURI; |
87 | 87 |
88 virtual void reviewFileForAppending(QString filename); | 88 void reviewFileForAppending(QString filename) override; |
89 | 89 |
90 void writePrefixes(QTextStream *); | 90 void writePrefixes(QTextStream *); |
91 void writeSignalDescription(QTextStream *, QString); | 91 void writeSignalDescription(QTextStream *, QString); |
92 void writeLocalFeatureTypes(QTextStream *, | 92 void writeLocalFeatureTypes(QTextStream *, |
93 const Transform &, | 93 const Transform &, |