/usr/include/collada-dom2.4/modules/stdErrPlugin.h is in libcollada-dom2.4-dp-dev 2.4.4+ds1-2build3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | /*
* Copyright 2006 Sony Computer Entertainment Inc.
*
* Licensed under the MIT Open Source License, for details please see license.txt or the website
* http://www.opensource.org/licenses/mit-license.php
*
*/
#ifndef _STDERR_PLUGIN_
#define _STDERR_PLUGIN_
#include <dae/daeTypes.h>
#include <dae/daeErrorHandler.h>
/**
* The @c stdErrPlugin class is the default implementation of daeErrorHandler. It routes the Error
* and Warning messaged to stdout.
*/
class DLLSPEC stdErrPlugin : public daeErrorHandler {
public:
stdErrPlugin();
virtual ~stdErrPlugin();
public:
void handleError( daeString msg );
void handleWarning( daeString msg );
};
/**
* The @c quietErrorHandler class is an alternative implementation of daeErrorHandler. It suppresses
* error and warning messages. The easiest way to use it is like this:
* daeErrorHandler::setErrorHandler(&quietErrorHandler::getInstance());
*/
class DLLSPEC quietErrorHandler : public daeErrorHandler {
public:
quietErrorHandler() { }
void handleError(daeString msg) { }
void handleWarning(daeString msg) { }
static quietErrorHandler& getInstance() { return theInstance; }
private:
static quietErrorHandler theInstance;
};
#endif
|