Mercurial > hg > svcore
comparison rdf/RDFImporter.h @ 1752:6d09d68165a4 by-id
Further review of ById: make IDs only available when adding a model to the ById store, not by querying the item directly. This means any id encountered in the wild must have been added to the store at some point (even if later released), which simplifies reasoning about lifecycles
author | Chris Cannam |
---|---|
date | Fri, 05 Jul 2019 15:28:07 +0100 |
parents | 565575463752 |
children | a454c7477b4f |
comparison
equal
deleted
inserted
replaced
1751:77543124651b | 1752:6d09d68165a4 |
---|---|
20 #include <QString> | 20 #include <QString> |
21 | 21 |
22 #include <vector> | 22 #include <vector> |
23 | 23 |
24 #include "base/BaseTypes.h" | 24 #include "base/BaseTypes.h" |
25 #include "data/model/Model.h" | |
25 | 26 |
26 class Model; | |
27 class RDFImporterImpl; | 27 class RDFImporterImpl; |
28 class ProgressReporter; | 28 class ProgressReporter; |
29 | 29 |
30 class RDFImporter : public QObject | 30 class RDFImporter : public QObject |
31 { | 31 { |
46 | 46 |
47 bool isOK(); | 47 bool isOK(); |
48 QString getErrorString() const; | 48 QString getErrorString() const; |
49 | 49 |
50 /** | 50 /** |
51 * Return a list of models imported from the RDF source. The | 51 * Return a list of models imported from the RDF source. The |
52 * models were heap-allocated by this class and are not registered | 52 * models have been newly created and registered with ById; the |
53 * with any other owner; the caller takes ownership and must | 53 * caller must arrange to release them. |
54 * arrange for them to be deleted manually or managed by a smart | |
55 * pointer. | |
56 */ | 54 */ |
57 //!!! todo: ModelId-ise | 55 std::vector<ModelId> getDataModels(ProgressReporter *reporter); |
58 std::vector<Model *> getDataModels(ProgressReporter *reporter); | |
59 | 56 |
60 enum RDFDocumentType { | 57 enum RDFDocumentType { |
61 AudioRefAndAnnotations, | 58 AudioRefAndAnnotations, |
62 Annotations, | 59 Annotations, |
63 AudioRef, | 60 AudioRef, |