Mercurial > hg > svcore
comparison transform/Transform.h @ 508:1b8c748fd7ea
* Support recording the summary type in transform
author | Chris Cannam |
---|---|
date | Fri, 05 Dec 2008 16:18:04 +0000 |
parents | 4c000e196bf1 |
children | 539740f231fa |
comparison
equal
deleted
inserted
replaced
507:0944d13689b2 | 508:1b8c748fd7ea |
---|---|
91 | 91 |
92 const ConfigurationMap &getConfiguration() const; | 92 const ConfigurationMap &getConfiguration() const; |
93 void setConfiguration(const ConfigurationMap &cm); | 93 void setConfiguration(const ConfigurationMap &cm); |
94 void setConfigurationValue(QString name, QString value); | 94 void setConfigurationValue(QString name, QString value); |
95 | 95 |
96 enum SummaryType { | |
97 | |
98 // This is the same as Vamp::PluginSummarisingAdapter::SummaryType | |
99 // except with NoSummary instead of UnknownSummaryType | |
100 | |
101 Minimum = 0, | |
102 Maximum = 1, | |
103 Mean = 2, | |
104 Median = 3, | |
105 Mode = 4, | |
106 Sum = 5, | |
107 Variance = 6, | |
108 StandardDeviation = 7, | |
109 Count = 8, | |
110 | |
111 NoSummary = 999 | |
112 }; | |
113 SummaryType getSummaryType() const; | |
114 void setSummaryType(SummaryType type); | |
115 | |
96 QString getPluginVersion() const; | 116 QString getPluginVersion() const; |
97 void setPluginVersion(QString version); | 117 void setPluginVersion(QString version); |
98 | 118 |
99 QString getProgram() const; | 119 QString getProgram() const; |
100 void setProgram(QString program); | 120 void setProgram(QString program); |
132 * is to create a transform exactly matching the given attributes, | 152 * is to create a transform exactly matching the given attributes, |
133 * ensure you start from an empty transform rather than one that | 153 * ensure you start from an empty transform rather than one that |
134 * has already been configured. | 154 * has already been configured. |
135 */ | 155 */ |
136 void setFromXmlAttributes(const QXmlAttributes &); | 156 void setFromXmlAttributes(const QXmlAttributes &); |
157 | |
158 static SummaryType stringToSummaryType(QString); | |
159 static QString summaryTypeToString(SummaryType); | |
137 | 160 |
138 protected: | 161 protected: |
139 TransformId m_id; // pluginid:output, that is type:soname:label:output | 162 TransformId m_id; // pluginid:output, that is type:soname:label:output |
140 | 163 |
141 static QString createIdentifier | 164 static QString createIdentifier |
160 return false; // equal | 183 return false; // equal |
161 } | 184 } |
162 | 185 |
163 ParameterMap m_parameters; | 186 ParameterMap m_parameters; |
164 ConfigurationMap m_configuration; | 187 ConfigurationMap m_configuration; |
188 SummaryType m_summaryType; | |
165 QString m_pluginVersion; | 189 QString m_pluginVersion; |
166 QString m_program; | 190 QString m_program; |
167 size_t m_stepSize; | 191 size_t m_stepSize; |
168 size_t m_blockSize; | 192 size_t m_blockSize; |
169 WindowType m_windowType; | 193 WindowType m_windowType; |