comparison data/model/Model.h @ 558:1d7ebc05157e

* Some fairly simplistic code to set up layer type properties based on RDF data about feature types (both when running transforms and when importing features from RDF files).
author Chris Cannam
date Thu, 12 Feb 2009 15:26:43 +0000
parents 52303ec15cd2
children 33fca917c800
comparison
equal deleted inserted replaced
557:a40023bebd15 558:1d7ebc05157e
193 * if there is no alignment model or it has been entirely 193 * if there is no alignment model or it has been entirely
194 * calculated, or less than 100 if it is still being calculated. 194 * calculated, or less than 100 if it is still being calculated.
195 */ 195 */
196 virtual int getAlignmentCompletion() const; 196 virtual int getAlignmentCompletion() const;
197 197
198 /**
199 * Set the event, feature, or signal type URI for the features
200 * contained in this model, according to the Audio Features RDF
201 * ontology.
202 */
203 void setRDFTypeURI(QString uri) { m_typeUri = uri; }
204
205 /**
206 * Retrieve the event, feature, or signal type URI for the
207 * features contained in this model, if previously set with
208 * setRDFTypeURI.
209 */
210 QString getRDFTypeURI() const { return m_typeUri; }
211
198 virtual void toXml(QTextStream &stream, 212 virtual void toXml(QTextStream &stream,
199 QString indent = "", 213 QString indent = "",
200 QString extraAttributes = "") const; 214 QString extraAttributes = "") const;
201 215
202 virtual QString toDelimitedDataString(QString) const { return ""; } 216 virtual QString toDelimitedDataString(QString) const { return ""; }
255 Model(const Model &); 269 Model(const Model &);
256 Model &operator=(const Model &); 270 Model &operator=(const Model &);
257 271
258 Model *m_sourceModel; 272 Model *m_sourceModel;
259 AlignmentModel *m_alignment; 273 AlignmentModel *m_alignment;
274 QString m_typeUri;
260 bool m_aboutToDelete; 275 bool m_aboutToDelete;
261 }; 276 };
262 277
263 #endif 278 #endif