Mercurial > hg > svcore
diff rdf/RDFTransformFactory.h @ 1172:59ae7e04f7e9
Merge
author | Chris Cannam |
---|---|
date | Fri, 04 Mar 2016 12:29:35 +0000 |
parents | d094598f84bd |
children | ad5f892c0c4d |
line wrap: on
line diff
--- a/rdf/RDFTransformFactory.h Fri Mar 04 09:50:09 2016 +0000 +++ b/rdf/RDFTransformFactory.h Fri Mar 04 12:29:35 2016 +0000 @@ -36,8 +36,28 @@ RDFTransformFactory(QString url); virtual ~RDFTransformFactory(); - bool isRDF(); // true if the file was parseable and had transforms in it - bool isOK(); // true if the transforms could be completely constructed + /** isRDF() may be queried at any point after construction. It + returns true if the file was parseable as RDF. + */ + bool isRDF(); + + /** isOK() may be queried at any point after getTransforms() has + been called. It is true if the file was parseable as RDF and + any transforms in it could be completely constructed. + + Note that even if isOK() returns true, it is still possible + that the file did not define any transforms; in this case, + getTransforms() would have returned an empty list. + + If isOK() is called before getTransforms() has been invoked to + query the file, it will return true iff isRDF() is true. + */ + bool isOK(); + + /** Return any error string resulting from loading or querying the + file. This will be non-empty if isRDF() or isOK() returns + false. + */ QString getErrorString() const; std::vector<Transform> getTransforms(ProgressReporter *reporter);