Use a shorter/simpler license convention, stops the header taking so much space. Follow the SPDX license specification: https://spdx.org/licenses - C/C++/objc/objc++ - Python - Shell Scripts - CMake, GNUmakefile While most of the source tree has been included - `./extern/` was left out. - `./intern/cycles` & `./intern/atomic` are also excluded because they use different header conventions. doc/license/SPDX-license-identifiers.txt has been added to list SPDX all used identifiers. See P2788 for the script that automated these edits. Reviewed By: brecht, mont29, sergey Ref D14069
39 lines
835 B
C++
39 lines
835 B
C++
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
/** \file
|
|
* \ingroup collada
|
|
*/
|
|
|
|
#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:
|
|
/** Disable default copy constructor. */
|
|
ErrorHandler(const ErrorHandler &pre);
|
|
/** Disable default assignment operator. */
|
|
const ErrorHandler &operator=(const ErrorHandler &pre);
|
|
/** Hold error status. */
|
|
bool mError;
|
|
};
|