Changeset View
Changeset View
Standalone View
Standalone View
source/blender/io/collada/ErrorHandler.h
| Show All 28 Lines | |||||
| /** \brief Handler class for parser errors | /** \brief Handler class for parser errors | ||||
| */ | */ | ||||
| class ErrorHandler : public COLLADASaxFWL::IErrorHandler { | class ErrorHandler : public COLLADASaxFWL::IErrorHandler { | ||||
| public: | public: | ||||
| /** Constructor. */ | /** Constructor. */ | ||||
| ErrorHandler(); | ErrorHandler(); | ||||
| /** Destructor. */ | |||||
| virtual ~ErrorHandler(); | |||||
| /** handle any error thrown by the parser. */ | /** handle any error thrown by the parser. */ | ||||
| bool virtual handleError(const COLLADASaxFWL::IError *error); | bool virtual handleError(const COLLADASaxFWL::IError *error); | ||||
| /** True if there was an error during parsing. */ | /** True if there was an error during parsing. */ | ||||
| bool hasError() | bool hasError() | ||||
| { | { | ||||
| return mError; | return mError; | ||||
| } | } | ||||
| private: | private: | ||||
| /** Disable default copy constructor. */ | /** Disable default copy constructor. */ | ||||
| ErrorHandler(const ErrorHandler &pre); | ErrorHandler(const ErrorHandler &pre); | ||||
| /** Disable default assignment operator. */ | /** Disable default assignment operator. */ | ||||
| const ErrorHandler &operator=(const ErrorHandler &pre); | const ErrorHandler &operator=(const ErrorHandler &pre); | ||||
| /** Hold error status. */ | /** Hold error status. */ | ||||
| bool mError; | bool mError; | ||||
| }; | }; | ||||