1 /*
2     Copyright (c) 2008-2009 NetAllied Systems GmbH
3 
4     This file is part of COLLADASaxFrameworkLoader.
5 
6     Licensed under the MIT Open Source License,
7     for details please see LICENSE file or the website
8     http://www.opensource.org/licenses/mit-license.php
9 */
10 
11 #ifndef __COLLADASAXFWL_IERRORHANDLER_H__
12 #define __COLLADASAXFWL_IERRORHANDLER_H__
13 
14 #include "COLLADASaxFWLPrerequisites.h"
15 
16 
17 namespace COLLADASaxFWL
18 {
19 	class IError;
20 
21     /** Interface to handle errors that occur while parsing a collada file*/
22 	class IErrorHandler
23 	{
24 	public:
25 
26 	public:
27 
28         /** Constructor. */
29 		IErrorHandler();
30 
31         /** Destructor. */
32 		virtual ~IErrorHandler();
33 
34 		/** If this method returns true, the loader stops parsing immediately. If severity is nor CRITICAL
35 		and this method returns false, the loader continues loading.*/
36 		bool virtual handleError(const IError* error) = 0;
37 
38 	private:
39 
40         /** Disable default copy ctor. */
41 		IErrorHandler( const IErrorHandler& pre );
42 
43         /** Disable default assignment operator. */
44 		const IErrorHandler& operator= ( const IErrorHandler& pre );
45 
46 	};
47 
48 } // namespace COLLADASAXFWL
49 
50 #endif // __COLLADASAXFWL_IERRORHANDLER_H__
51