Mercurial > hg > svapp
comparison framework/SVFileReader.h @ 644:6fd0ebfd2bbe
Merge from branch fix-static-analysis
author | Chris Cannam |
---|---|
date | Wed, 09 Jan 2019 15:25:09 +0000 |
parents | 26a0cb8335e3 |
children | 7540733f5480 |
comparison
equal
deleted
inserted
replaced
643:713b9a6b284a | 644:6fd0ebfd2bbe |
---|---|
11 published by the Free Software Foundation; either version 2 of the | 11 published by the Free Software Foundation; either version 2 of the |
12 License, or (at your option) any later version. See the file | 12 License, or (at your option) any later version. See the file |
13 COPYING included with this distribution for more information. | 13 COPYING included with this distribution for more information. |
14 */ | 14 */ |
15 | 15 |
16 #ifndef _SV_FILE_READER_H_ | 16 #ifndef SV_FILE_READER_H |
17 #define _SV_FILE_READER_H_ | 17 #define SV_FILE_READER_H |
18 | 18 |
19 #include "layer/LayerFactory.h" | 19 #include "layer/LayerFactory.h" |
20 #include "transform/Transform.h" | 20 #include "transform/Transform.h" |
21 | 21 |
22 #include <QXmlDefaultHandler> | 22 #include <QXmlDefaultHandler> |
179 QString getErrorString() const { return m_errorString; } | 179 QString getErrorString() const { return m_errorString; } |
180 | 180 |
181 // For loading a single layer onto an existing pane | 181 // For loading a single layer onto an existing pane |
182 void setCurrentPane(Pane *pane) { m_currentPane = pane; } | 182 void setCurrentPane(Pane *pane) { m_currentPane = pane; } |
183 | 183 |
184 virtual bool startElement(const QString &namespaceURI, | 184 bool startElement(const QString &namespaceURI, |
185 const QString &localName, | 185 const QString &localName, |
186 const QString &qName, | 186 const QString &qName, |
187 const QXmlAttributes& atts); | 187 const QXmlAttributes& atts) override; |
188 | 188 |
189 virtual bool characters(const QString &); | 189 bool characters(const QString &) override; |
190 | 190 |
191 virtual bool endElement(const QString &namespaceURI, | 191 bool endElement(const QString &namespaceURI, |
192 const QString &localName, | 192 const QString &localName, |
193 const QString &qName); | 193 const QString &qName) override; |
194 | 194 |
195 bool error(const QXmlParseException &exception); | 195 bool error(const QXmlParseException &exception) override; |
196 bool fatalError(const QXmlParseException &exception); | 196 bool fatalError(const QXmlParseException &exception) override; |
197 | 197 |
198 enum FileType | 198 enum FileType |
199 { | 199 { |
200 SVSessionFile, | 200 SVSessionFile, |
201 SVLayerFile, | 201 SVLayerFile, |