Mercurial > hg > svcore
comparison rdf/RDFFeatureWriter.h @ 1580:c01cbe41aeb5 fix-static-analysis
Use override throughout
author | Chris Cannam |
---|---|
date | Mon, 26 Nov 2018 13:48:45 +0000 |
parents | c8e291700c0e |
children | ad5f892c0c4d |
comparison
equal
deleted
inserted
replaced
1579:232d6ddf257d | 1580:c01cbe41aeb5 |
---|---|
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 &, |