Mercurial > hg > svcore
comparison transform/FeatureWriter.h @ 930:06579b8ffb7b warnfix_no_size_t
More size_t evisceration and warning fixes
author | Chris Cannam |
---|---|
date | Tue, 17 Jun 2014 14:49:49 +0100 |
parents | 608b4dc5ff34 |
children | e25dc8d57565 |
comparison
equal
deleted
inserted
replaced
929:59e7fe1b1003 | 930:06579b8ffb7b |
---|---|
47 typedef vector<Parameter> ParameterList; | 47 typedef vector<Parameter> ParameterList; |
48 virtual ParameterList getSupportedParameters() const { | 48 virtual ParameterList getSupportedParameters() const { |
49 return ParameterList(); | 49 return ParameterList(); |
50 } | 50 } |
51 | 51 |
52 virtual void setParameters(map<string, string> ¶ms) { | 52 virtual void setParameters(map<string, string> &) { |
53 return; | 53 return; |
54 } | 54 } |
55 | 55 |
56 struct TrackMetadata { | 56 struct TrackMetadata { |
57 QString title; | 57 QString title; |
58 QString maker; | 58 QString maker; |
59 }; | 59 }; |
60 virtual void setTrackMetadata(QString trackid, TrackMetadata metadata) { } | 60 virtual void setTrackMetadata(QString /* trackid */, TrackMetadata) { } |
61 | 61 |
62 class FailedToOpenOutputStream : virtual public std::exception | 62 class FailedToOpenOutputStream : virtual public std::exception |
63 { | 63 { |
64 public: | 64 public: |
65 FailedToOpenOutputStream(QString trackId, QString transformId) throw() : | 65 FailedToOpenOutputStream(QString trackId, QString transformId) throw() : |
91 * test the output stream before processing begins. The writer | 91 * test the output stream before processing begins. The writer |
92 * may legitimately succeed here but still fail later -- this is | 92 * may legitimately succeed here but still fail later -- this is |
93 * really an optimisation to ensure that easy-to-recognise failure | 93 * really an optimisation to ensure that easy-to-recognise failure |
94 * cases fail early. | 94 * cases fail early. |
95 */ | 95 */ |
96 virtual void testOutputFile(QString trackId, TransformId transformId) { } | 96 virtual void testOutputFile(QString /* trackId */, TransformId) { } |
97 | 97 |
98 virtual void flush() { } // whatever the last stream was | 98 virtual void flush() { } // whatever the last stream was |
99 | 99 |
100 virtual void finish() = 0; | 100 virtual void finish() = 0; |
101 | 101 |