Files
test/source/blender/io/collada/ErrorHandler.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
835 B
C
Raw Normal View History

/* SPDX-License-Identifier: GPL-2.0-or-later */
/** \file
* \ingroup collada
*/
2019-12-10 11:06:38 +11:00
#pragma once
#include <algorithm> /* sort() */
#include <map>
#include <string>
#include <vector>
#include "COLLADASaxFWLIErrorHandler.h"
/** \brief Handler class for parser errors
*/
class ErrorHandler : public COLLADASaxFWL::IErrorHandler {
public:
/** Constructor. */
ErrorHandler();
/** handle any error thrown by the parser. */
bool virtual handleError(const COLLADASaxFWL::IError *error);
/** True if there was an error during parsing. */
bool hasError()
{
return mError;
}
private:
2020-05-28 16:42:31 +10:00
/** Disable default copy constructor. */
ErrorHandler(const ErrorHandler &pre);
/** Disable default assignment operator. */
const ErrorHandler &operator=(const ErrorHandler &pre);
/** Hold error status. */
bool mError;
};