00001 /* 00002 * Copyright 2006 Sony Computer Entertainment Inc. 00003 * 00004 * Licensed under the MIT Open Source License, for details please see license.txt or the website 00005 * http://www.opensource.org/licenses/mit-license.php 00006 * 00007 */ 00008 00009 #ifndef _STDERR_PLUGIN_ 00010 #define _STDERR_PLUGIN_ 00011 00012 #include <dae/daeTypes.h> 00013 #include <dae/daeErrorHandler.h> 00014 00019 class DLLSPEC stdErrPlugin : public daeErrorHandler { 00020 public: 00021 stdErrPlugin(); 00022 virtual ~stdErrPlugin(); 00023 00024 public: 00025 void handleError( daeString msg ); 00026 void handleWarning( daeString msg ); 00027 }; 00028 00034 class DLLSPEC quietErrorHandler : public daeErrorHandler { 00035 public: 00036 quietErrorHandler() { } 00037 void handleError(daeString msg) { } 00038 void handleWarning(daeString msg) { } 00039 00040 static quietErrorHandler& getInstance() { return theInstance; } 00041 00042 private: 00043 static quietErrorHandler theInstance; 00044 }; 00045 00046 #endif