diff 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
line wrap: on
line diff
--- a/data/model/Model.h	Tue Feb 10 17:24:30 2009 +0000
+++ b/data/model/Model.h	Thu Feb 12 15:26:43 2009 +0000
@@ -195,6 +195,20 @@
      */
     virtual int getAlignmentCompletion() const;
 
+    /**
+     * Set the event, feature, or signal type URI for the features
+     * contained in this model, according to the Audio Features RDF
+     * ontology.
+     */
+    void setRDFTypeURI(QString uri) { m_typeUri = uri; }
+
+    /**
+     * Retrieve the event, feature, or signal type URI for the
+     * features contained in this model, if previously set with
+     * setRDFTypeURI.
+     */
+    QString getRDFTypeURI() const { return m_typeUri; }
+
     virtual void toXml(QTextStream &stream,
                        QString indent = "",
                        QString extraAttributes = "") const;
@@ -257,6 +271,7 @@
 
     Model *m_sourceModel;
     AlignmentModel *m_alignment;
+    QString m_typeUri;
     bool m_aboutToDelete;
 };