Mercurial > hg > svcore
diff transform/Transform.h @ 1163:d094598f84bd
Better error reporting for transform load (from RDF and XML)
author | Chris Cannam |
---|---|
date | Thu, 25 Feb 2016 10:53:10 +0000 |
parents | a2dbedc0cfee |
children | c01cbe41aeb5 |
line wrap: on
line diff
--- a/transform/Transform.h Wed Feb 24 11:35:51 2016 +0000 +++ b/transform/Transform.h Thu Feb 25 10:53:10 2016 +0000 @@ -46,7 +46,8 @@ /** * Construct a Transform by parsing the given XML data string. - * This is the inverse of toXml. + * This is the inverse of toXml. If this fails, getErrorString() + * will return a non-empty string. */ Transform(QString xml); @@ -156,6 +157,8 @@ */ void setFromXmlAttributes(const QXmlAttributes &); + QString getErrorString() const { return m_errorString; } + static SummaryType stringToSummaryType(QString); static QString summaryTypeToString(SummaryType); @@ -195,6 +198,7 @@ RealTime m_startTime; RealTime m_duration; sv_samplerate_t m_sampleRate; + QString m_errorString; }; typedef std::vector<Transform> Transforms;