diff framework/SVFileReader.h @ 631:146dbfac36a3 zoom

Merge from default branch
author Chris Cannam
date Tue, 06 Nov 2018 08:59:08 +0000
parents 10046d544e76
children 163573a73ebe
line wrap: on
line diff
--- a/framework/SVFileReader.h	Tue Oct 09 15:55:26 2018 +0100
+++ b/framework/SVFileReader.h	Tue Nov 06 08:59:08 2018 +0000
@@ -229,12 +229,20 @@
     bool readParameter(const QXmlAttributes &);
     bool readSelection(const QXmlAttributes &);
     bool readMeasurement(const QXmlAttributes &);
+
+    void makeAggregateModels();
     void addUnaddedModels();
 
     bool haveModel(int id) {
         return (m_models.find(id) != m_models.end()) && m_models[id];
     }
 
+    struct PendingAggregateRec {
+        QString name;
+        sv_samplerate_t sampleRate;
+        std::vector<int> components;
+    };
+    
     Document *m_document;
     SVFileReaderPaneCallback &m_paneCallback;
     QString m_location;
@@ -242,6 +250,7 @@
     std::map<int, Layer *> m_layers;
     std::map<int, Model *> m_models;
     std::set<Model *> m_addedModels;
+    std::map<int, PendingAggregateRec> m_pendingAggregates;
     std::map<int, int> m_awaitingDatasets; // map dataset id -> model id
     Layer *m_currentLayer;
     Model *m_currentDataset;