comparison rdf/RDFTransformFactory.h @ 1172:59ae7e04f7e9

Merge
author Chris Cannam
date Fri, 04 Mar 2016 12:29:35 +0000
parents d094598f84bd
children ad5f892c0c4d
comparison
equal deleted inserted replaced
1171:fa1bec83441e 1172:59ae7e04f7e9
34 static QString getKnownExtensions(); 34 static QString getKnownExtensions();
35 35
36 RDFTransformFactory(QString url); 36 RDFTransformFactory(QString url);
37 virtual ~RDFTransformFactory(); 37 virtual ~RDFTransformFactory();
38 38
39 bool isRDF(); // true if the file was parseable and had transforms in it 39 /** isRDF() may be queried at any point after construction. It
40 bool isOK(); // true if the transforms could be completely constructed 40 returns true if the file was parseable as RDF.
41 */
42 bool isRDF();
43
44 /** isOK() may be queried at any point after getTransforms() has
45 been called. It is true if the file was parseable as RDF and
46 any transforms in it could be completely constructed.
47
48 Note that even if isOK() returns true, it is still possible
49 that the file did not define any transforms; in this case,
50 getTransforms() would have returned an empty list.
51
52 If isOK() is called before getTransforms() has been invoked to
53 query the file, it will return true iff isRDF() is true.
54 */
55 bool isOK();
56
57 /** Return any error string resulting from loading or querying the
58 file. This will be non-empty if isRDF() or isOK() returns
59 false.
60 */
41 QString getErrorString() const; 61 QString getErrorString() const;
42 62
43 std::vector<Transform> getTransforms(ProgressReporter *reporter); 63 std::vector<Transform> getTransforms(ProgressReporter *reporter);
44 64
45 static QString writeTransformToRDF(const Transform &, QString uri); 65 static QString writeTransformToRDF(const Transform &, QString uri);