2008-06-22 10:09:26 +00:00
|
|
|
/*
|
|
|
|
Open Asset Import Library (ASSIMP)
|
|
|
|
----------------------------------------------------------------------
|
|
|
|
|
|
|
|
Copyright (c) 2006-2008, ASSIMP Development Team
|
|
|
|
All rights reserved.
|
|
|
|
|
|
|
|
Redistribution and use of this software in source and binary forms,
|
|
|
|
with or without modification, are permitted provided that the
|
|
|
|
following conditions are met:
|
|
|
|
|
|
|
|
* Redistributions of source code must retain the above
|
|
|
|
copyright notice, this list of conditions and the
|
|
|
|
following disclaimer.
|
|
|
|
|
|
|
|
* Redistributions in binary form must reproduce the above
|
|
|
|
copyright notice, this list of conditions and the
|
|
|
|
following disclaimer in the documentation and/or other
|
|
|
|
materials provided with the distribution.
|
|
|
|
|
|
|
|
* Neither the name of the ASSIMP team, nor the names of its
|
|
|
|
contributors may be used to endorse or promote products
|
|
|
|
derived from this software without specific prior
|
|
|
|
written permission of the ASSIMP Development Team.
|
|
|
|
|
|
|
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
|
|
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
|
|
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
|
|
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
|
|
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
|
|
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
|
|
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
|
|
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
|
|
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
|
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
|
|
|
|
----------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
2009-01-13 18:58:07 +00:00
|
|
|
/** @file Logger.h
|
|
|
|
* @brief Abstract base class 'Logger', base of the logging system.
|
2009-01-12 22:06:54 +00:00
|
|
|
*/
|
|
|
|
#ifndef INCLUDED_AI_LOGGER_H
|
|
|
|
#define INCLUDED_AI_LOGGER_H
|
2008-05-07 21:33:35 +00:00
|
|
|
|
2009-01-12 22:06:54 +00:00
|
|
|
#include "aiTypes.h"
|
|
|
|
namespace Assimp {
|
2008-05-07 21:33:35 +00:00
|
|
|
class LogStream;
|
|
|
|
|
2009-05-28 11:32:54 +00:00
|
|
|
// Maximum length of a log message. Longer messages are rejected.
|
General
- Added format auto-detection to most loaders
- Simplified BaseImporter::CanRead() with some utility methods
- improved fast_atof -> no overruns anymore. Fuck you, irrlicht.
- added assimp_cmd tool to allow command line model processing. Mainly adebugging tool for internal purposes, but others might find it useful, too.
- vc8/vc9: revision number is now written to DLL version header
- mkutil: some batch scripts to simplify tagging & building of release versions
- some API cleanup
- fixing some doxygen markup (+now explicit use of @file <filename>)
- Icon for assimp_view and assimp_cmd
3DS
- Normal vectors are not anymore inverted in some cases
- Improved pivot handling
- Improved handling of x-flipped meshes
Collada
- fixed a minor bug (visual_scene element)
LWS
- WIP implementation. No animations yet, some bugs and crashes.
- Animation system remains disabled, WIP code
- many test files for LWS, but most of them test the anim support, which is, read above, currently disabled.
STL
- fixing a log warning which appears for every model
- added binary&ascii test spider, exported from truespace
MD3
- Cleaning up output tags for automatically joined player models.
IRR
- Fixing coordinate system issues.
- Instance handling improved.
- Some of the reported crashes not yet fixed.
PretransformVertices
- Numerous performance improvements.
- Added config option to preserve the hierarchy during the step.
RemoveRedundantMaterials
- Added config option to specify a list of materials which are kept in every case.
UNREAL
- Added support for the old unreal data format (*.a,*.d,*.uc)
- tested only with exports from Milkshape
- more Unreal stuff to come soon
git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@356 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
2009-03-05 22:32:13 +00:00
|
|
|
#define MAX_LOG_MESSAGE_LENGTH 1024u
|
|
|
|
|
2009-01-12 22:06:54 +00:00
|
|
|
// ----------------------------------------------------------------------------------
|
2009-08-31 15:51:54 +00:00
|
|
|
/** @brief CPP-API: Abstract interface for logger implementations.
|
2009-05-28 11:32:54 +00:00
|
|
|
* Assimp provides a default implementation and uses it for almost all
|
|
|
|
* logging stuff ('DefaultLogger'). This class defines just basic logging
|
2009-08-31 15:51:54 +00:00
|
|
|
* behaviour and is not of interest for you. Instead, take a look at #DefaultLogger. */
|
2009-05-28 11:32:54 +00:00
|
|
|
class ASSIMP_API Logger
|
2009-08-31 15:51:54 +00:00
|
|
|
: public Intern::AllocateFromAssimpHeap {
|
2008-05-07 21:33:35 +00:00
|
|
|
public:
|
2009-05-28 11:32:54 +00:00
|
|
|
|
|
|
|
// ----------------------------------------------------------------------
|
2008-05-07 21:33:35 +00:00
|
|
|
/** @enum LogSeverity
|
2009-01-13 18:58:07 +00:00
|
|
|
* @brief Log severity to describe the granularity of logging.
|
2008-05-07 21:33:35 +00:00
|
|
|
*/
|
|
|
|
enum LogSeverity
|
|
|
|
{
|
2009-01-12 22:06:54 +00:00
|
|
|
NORMAL, //!< Normal granularity of logging
|
2008-05-07 21:33:35 +00:00
|
|
|
VERBOSE //!< Debug infos will be logged, too
|
|
|
|
};
|
|
|
|
|
2009-05-28 11:32:54 +00:00
|
|
|
// ----------------------------------------------------------------------
|
2008-05-07 21:33:35 +00:00
|
|
|
/** @enum ErrorSeverity
|
2009-01-12 22:06:54 +00:00
|
|
|
* @brief Description for severity of a log message.
|
|
|
|
*
|
2009-01-13 18:58:07 +00:00
|
|
|
* Every LogStream has a bitwise combination of these flags.
|
2009-01-12 22:06:54 +00:00
|
|
|
* A LogStream doesn't receive any messages of a specific type
|
|
|
|
* if it doesn't specify the corresponding ErrorSeverity flag.
|
2008-05-07 21:33:35 +00:00
|
|
|
*/
|
|
|
|
enum ErrorSeverity
|
|
|
|
{
|
|
|
|
DEBUGGING = 1, //!< Debug log message
|
|
|
|
INFO = 2, //!< Info log message
|
|
|
|
WARN = 4, //!< Warn log message
|
|
|
|
ERR = 8 //!< Error log message
|
|
|
|
};
|
|
|
|
|
|
|
|
public:
|
General
- Added format auto-detection to most loaders
- Simplified BaseImporter::CanRead() with some utility methods
- improved fast_atof -> no overruns anymore. Fuck you, irrlicht.
- added assimp_cmd tool to allow command line model processing. Mainly adebugging tool for internal purposes, but others might find it useful, too.
- vc8/vc9: revision number is now written to DLL version header
- mkutil: some batch scripts to simplify tagging & building of release versions
- some API cleanup
- fixing some doxygen markup (+now explicit use of @file <filename>)
- Icon for assimp_view and assimp_cmd
3DS
- Normal vectors are not anymore inverted in some cases
- Improved pivot handling
- Improved handling of x-flipped meshes
Collada
- fixed a minor bug (visual_scene element)
LWS
- WIP implementation. No animations yet, some bugs and crashes.
- Animation system remains disabled, WIP code
- many test files for LWS, but most of them test the anim support, which is, read above, currently disabled.
STL
- fixing a log warning which appears for every model
- added binary&ascii test spider, exported from truespace
MD3
- Cleaning up output tags for automatically joined player models.
IRR
- Fixing coordinate system issues.
- Instance handling improved.
- Some of the reported crashes not yet fixed.
PretransformVertices
- Numerous performance improvements.
- Added config option to preserve the hierarchy during the step.
RemoveRedundantMaterials
- Added config option to specify a list of materials which are kept in every case.
UNREAL
- Added support for the old unreal data format (*.a,*.d,*.uc)
- tested only with exports from Milkshape
- more Unreal stuff to come soon
git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@356 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
2009-03-05 22:32:13 +00:00
|
|
|
|
2009-01-13 18:58:07 +00:00
|
|
|
/** @brief Virtual destructor */
|
2008-05-07 21:33:35 +00:00
|
|
|
virtual ~Logger();
|
|
|
|
|
2009-05-28 11:32:54 +00:00
|
|
|
// ----------------------------------------------------------------------
|
2009-01-13 18:58:07 +00:00
|
|
|
/** @brief Writes a debug message
|
2009-08-31 15:51:54 +00:00
|
|
|
* @param message Debug message*/
|
2009-01-23 21:06:43 +00:00
|
|
|
void debug(const std::string &message);
|
2008-05-07 21:33:35 +00:00
|
|
|
|
2009-05-28 11:32:54 +00:00
|
|
|
// ----------------------------------------------------------------------
|
2009-01-13 18:58:07 +00:00
|
|
|
/** @brief Writes a info message
|
2009-08-31 15:51:54 +00:00
|
|
|
* @param message Info message*/
|
2009-01-23 21:06:43 +00:00
|
|
|
void info(const std::string &message);
|
2008-05-07 21:33:35 +00:00
|
|
|
|
2009-05-28 11:32:54 +00:00
|
|
|
// ----------------------------------------------------------------------
|
2009-01-13 18:58:07 +00:00
|
|
|
/** @brief Writes a warning message
|
2009-08-31 15:51:54 +00:00
|
|
|
* @param message Warn message*/
|
2009-01-23 21:06:43 +00:00
|
|
|
void warn(const std::string &message);
|
2008-05-07 21:33:35 +00:00
|
|
|
|
2009-05-28 11:32:54 +00:00
|
|
|
// ----------------------------------------------------------------------
|
2009-01-13 18:58:07 +00:00
|
|
|
/** @brief Writes an error message
|
2009-08-31 15:51:54 +00:00
|
|
|
* @param message Error message*/
|
2009-01-23 21:06:43 +00:00
|
|
|
void error(const std::string &message);
|
2008-05-07 21:33:35 +00:00
|
|
|
|
2009-05-28 11:32:54 +00:00
|
|
|
// ----------------------------------------------------------------------
|
2009-01-13 18:58:07 +00:00
|
|
|
/** @brief Set a new log severity.
|
2009-08-31 15:51:54 +00:00
|
|
|
* @param log_severity New severity for logging*/
|
General
- Added format auto-detection to most loaders
- Simplified BaseImporter::CanRead() with some utility methods
- improved fast_atof -> no overruns anymore. Fuck you, irrlicht.
- added assimp_cmd tool to allow command line model processing. Mainly adebugging tool for internal purposes, but others might find it useful, too.
- vc8/vc9: revision number is now written to DLL version header
- mkutil: some batch scripts to simplify tagging & building of release versions
- some API cleanup
- fixing some doxygen markup (+now explicit use of @file <filename>)
- Icon for assimp_view and assimp_cmd
3DS
- Normal vectors are not anymore inverted in some cases
- Improved pivot handling
- Improved handling of x-flipped meshes
Collada
- fixed a minor bug (visual_scene element)
LWS
- WIP implementation. No animations yet, some bugs and crashes.
- Animation system remains disabled, WIP code
- many test files for LWS, but most of them test the anim support, which is, read above, currently disabled.
STL
- fixing a log warning which appears for every model
- added binary&ascii test spider, exported from truespace
MD3
- Cleaning up output tags for automatically joined player models.
IRR
- Fixing coordinate system issues.
- Instance handling improved.
- Some of the reported crashes not yet fixed.
PretransformVertices
- Numerous performance improvements.
- Added config option to preserve the hierarchy during the step.
RemoveRedundantMaterials
- Added config option to specify a list of materials which are kept in every case.
UNREAL
- Added support for the old unreal data format (*.a,*.d,*.uc)
- tested only with exports from Milkshape
- more Unreal stuff to come soon
git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@356 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
2009-03-05 22:32:13 +00:00
|
|
|
void setLogSeverity(LogSeverity log_severity);
|
|
|
|
|
2009-05-28 11:32:54 +00:00
|
|
|
// ----------------------------------------------------------------------
|
2009-08-31 15:51:54 +00:00
|
|
|
/** @brief Get the current log severity*/
|
General
- Added format auto-detection to most loaders
- Simplified BaseImporter::CanRead() with some utility methods
- improved fast_atof -> no overruns anymore. Fuck you, irrlicht.
- added assimp_cmd tool to allow command line model processing. Mainly adebugging tool for internal purposes, but others might find it useful, too.
- vc8/vc9: revision number is now written to DLL version header
- mkutil: some batch scripts to simplify tagging & building of release versions
- some API cleanup
- fixing some doxygen markup (+now explicit use of @file <filename>)
- Icon for assimp_view and assimp_cmd
3DS
- Normal vectors are not anymore inverted in some cases
- Improved pivot handling
- Improved handling of x-flipped meshes
Collada
- fixed a minor bug (visual_scene element)
LWS
- WIP implementation. No animations yet, some bugs and crashes.
- Animation system remains disabled, WIP code
- many test files for LWS, but most of them test the anim support, which is, read above, currently disabled.
STL
- fixing a log warning which appears for every model
- added binary&ascii test spider, exported from truespace
MD3
- Cleaning up output tags for automatically joined player models.
IRR
- Fixing coordinate system issues.
- Instance handling improved.
- Some of the reported crashes not yet fixed.
PretransformVertices
- Numerous performance improvements.
- Added config option to preserve the hierarchy during the step.
RemoveRedundantMaterials
- Added config option to specify a list of materials which are kept in every case.
UNREAL
- Added support for the old unreal data format (*.a,*.d,*.uc)
- tested only with exports from Milkshape
- more Unreal stuff to come soon
git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@356 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
2009-03-05 22:32:13 +00:00
|
|
|
LogSeverity getLogSeverity() const;
|
2008-05-07 21:33:35 +00:00
|
|
|
|
2009-05-28 11:32:54 +00:00
|
|
|
// ----------------------------------------------------------------------
|
2009-01-13 18:58:07 +00:00
|
|
|
/** @brief Attach a new logstream
|
2009-01-12 22:06:54 +00:00
|
|
|
*
|
2009-01-13 18:58:07 +00:00
|
|
|
* The logger takes ownership of the stream and is responsible
|
2009-01-12 22:06:54 +00:00
|
|
|
* for its destruction (which is done when the logger itself
|
|
|
|
* is destroyed). Call detachStream to detach a stream and to
|
|
|
|
* gain ownership of it again.
|
2009-01-13 18:58:07 +00:00
|
|
|
* @param pStream Logstream to attach
|
2009-01-12 22:06:54 +00:00
|
|
|
* @param severity Message filter, specified which types of log
|
|
|
|
* messages are dispatched to the stream. Provide a bitwise
|
|
|
|
* combination of the ErrorSeverity flags.
|
2009-08-31 15:51:54 +00:00
|
|
|
* @return true if the stream has been attached, false otherwise.*/
|
General
- Added format auto-detection to most loaders
- Simplified BaseImporter::CanRead() with some utility methods
- improved fast_atof -> no overruns anymore. Fuck you, irrlicht.
- added assimp_cmd tool to allow command line model processing. Mainly adebugging tool for internal purposes, but others might find it useful, too.
- vc8/vc9: revision number is now written to DLL version header
- mkutil: some batch scripts to simplify tagging & building of release versions
- some API cleanup
- fixing some doxygen markup (+now explicit use of @file <filename>)
- Icon for assimp_view and assimp_cmd
3DS
- Normal vectors are not anymore inverted in some cases
- Improved pivot handling
- Improved handling of x-flipped meshes
Collada
- fixed a minor bug (visual_scene element)
LWS
- WIP implementation. No animations yet, some bugs and crashes.
- Animation system remains disabled, WIP code
- many test files for LWS, but most of them test the anim support, which is, read above, currently disabled.
STL
- fixing a log warning which appears for every model
- added binary&ascii test spider, exported from truespace
MD3
- Cleaning up output tags for automatically joined player models.
IRR
- Fixing coordinate system issues.
- Instance handling improved.
- Some of the reported crashes not yet fixed.
PretransformVertices
- Numerous performance improvements.
- Added config option to preserve the hierarchy during the step.
RemoveRedundantMaterials
- Added config option to specify a list of materials which are kept in every case.
UNREAL
- Added support for the old unreal data format (*.a,*.d,*.uc)
- tested only with exports from Milkshape
- more Unreal stuff to come soon
git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@356 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
2009-03-05 22:32:13 +00:00
|
|
|
virtual bool attachStream(LogStream *pStream,
|
2009-01-12 22:06:54 +00:00
|
|
|
unsigned int severity = DEBUGGING | ERR | WARN | INFO) = 0;
|
|
|
|
|
2009-05-28 11:32:54 +00:00
|
|
|
// ----------------------------------------------------------------------
|
2009-01-13 18:58:07 +00:00
|
|
|
/** @brief Detach a still attached stream from the logger (or
|
|
|
|
* modify the filter flags bits)
|
|
|
|
* @param pStream Logstream instance for detaching
|
2009-01-12 22:06:54 +00:00
|
|
|
* @param severity Provide a bitwise combination of the ErrorSeverity
|
|
|
|
* flags. This value is &~ed with the current flags of the stream,
|
|
|
|
* if the result is 0 the stream is detached from the Logger and
|
|
|
|
* the caller retakes the possession of the stream.
|
2009-08-31 15:51:54 +00:00
|
|
|
* @return true if the stream has been dettached, false otherwise.*/
|
General
- Added format auto-detection to most loaders
- Simplified BaseImporter::CanRead() with some utility methods
- improved fast_atof -> no overruns anymore. Fuck you, irrlicht.
- added assimp_cmd tool to allow command line model processing. Mainly adebugging tool for internal purposes, but others might find it useful, too.
- vc8/vc9: revision number is now written to DLL version header
- mkutil: some batch scripts to simplify tagging & building of release versions
- some API cleanup
- fixing some doxygen markup (+now explicit use of @file <filename>)
- Icon for assimp_view and assimp_cmd
3DS
- Normal vectors are not anymore inverted in some cases
- Improved pivot handling
- Improved handling of x-flipped meshes
Collada
- fixed a minor bug (visual_scene element)
LWS
- WIP implementation. No animations yet, some bugs and crashes.
- Animation system remains disabled, WIP code
- many test files for LWS, but most of them test the anim support, which is, read above, currently disabled.
STL
- fixing a log warning which appears for every model
- added binary&ascii test spider, exported from truespace
MD3
- Cleaning up output tags for automatically joined player models.
IRR
- Fixing coordinate system issues.
- Instance handling improved.
- Some of the reported crashes not yet fixed.
PretransformVertices
- Numerous performance improvements.
- Added config option to preserve the hierarchy during the step.
RemoveRedundantMaterials
- Added config option to specify a list of materials which are kept in every case.
UNREAL
- Added support for the old unreal data format (*.a,*.d,*.uc)
- tested only with exports from Milkshape
- more Unreal stuff to come soon
git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@356 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
2009-03-05 22:32:13 +00:00
|
|
|
virtual bool detatchStream(LogStream *pStream,
|
2009-01-12 22:06:54 +00:00
|
|
|
unsigned int severity = DEBUGGING | ERR | WARN | INFO) = 0;
|
2008-05-07 21:33:35 +00:00
|
|
|
|
|
|
|
protected:
|
General
- Added format auto-detection to most loaders
- Simplified BaseImporter::CanRead() with some utility methods
- improved fast_atof -> no overruns anymore. Fuck you, irrlicht.
- added assimp_cmd tool to allow command line model processing. Mainly adebugging tool for internal purposes, but others might find it useful, too.
- vc8/vc9: revision number is now written to DLL version header
- mkutil: some batch scripts to simplify tagging & building of release versions
- some API cleanup
- fixing some doxygen markup (+now explicit use of @file <filename>)
- Icon for assimp_view and assimp_cmd
3DS
- Normal vectors are not anymore inverted in some cases
- Improved pivot handling
- Improved handling of x-flipped meshes
Collada
- fixed a minor bug (visual_scene element)
LWS
- WIP implementation. No animations yet, some bugs and crashes.
- Animation system remains disabled, WIP code
- many test files for LWS, but most of them test the anim support, which is, read above, currently disabled.
STL
- fixing a log warning which appears for every model
- added binary&ascii test spider, exported from truespace
MD3
- Cleaning up output tags for automatically joined player models.
IRR
- Fixing coordinate system issues.
- Instance handling improved.
- Some of the reported crashes not yet fixed.
PretransformVertices
- Numerous performance improvements.
- Added config option to preserve the hierarchy during the step.
RemoveRedundantMaterials
- Added config option to specify a list of materials which are kept in every case.
UNREAL
- Added support for the old unreal data format (*.a,*.d,*.uc)
- tested only with exports from Milkshape
- more Unreal stuff to come soon
git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@356 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
2009-03-05 22:32:13 +00:00
|
|
|
|
|
|
|
/** Default constructor */
|
2008-05-07 21:33:35 +00:00
|
|
|
Logger();
|
2009-01-23 21:06:43 +00:00
|
|
|
|
General
- Added format auto-detection to most loaders
- Simplified BaseImporter::CanRead() with some utility methods
- improved fast_atof -> no overruns anymore. Fuck you, irrlicht.
- added assimp_cmd tool to allow command line model processing. Mainly adebugging tool for internal purposes, but others might find it useful, too.
- vc8/vc9: revision number is now written to DLL version header
- mkutil: some batch scripts to simplify tagging & building of release versions
- some API cleanup
- fixing some doxygen markup (+now explicit use of @file <filename>)
- Icon for assimp_view and assimp_cmd
3DS
- Normal vectors are not anymore inverted in some cases
- Improved pivot handling
- Improved handling of x-flipped meshes
Collada
- fixed a minor bug (visual_scene element)
LWS
- WIP implementation. No animations yet, some bugs and crashes.
- Animation system remains disabled, WIP code
- many test files for LWS, but most of them test the anim support, which is, read above, currently disabled.
STL
- fixing a log warning which appears for every model
- added binary&ascii test spider, exported from truespace
MD3
- Cleaning up output tags for automatically joined player models.
IRR
- Fixing coordinate system issues.
- Instance handling improved.
- Some of the reported crashes not yet fixed.
PretransformVertices
- Numerous performance improvements.
- Added config option to preserve the hierarchy during the step.
RemoveRedundantMaterials
- Added config option to specify a list of materials which are kept in every case.
UNREAL
- Added support for the old unreal data format (*.a,*.d,*.uc)
- tested only with exports from Milkshape
- more Unreal stuff to come soon
git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@356 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
2009-03-05 22:32:13 +00:00
|
|
|
/** Construction with a given log severity */
|
|
|
|
Logger(LogSeverity severity);
|
|
|
|
|
2009-05-28 11:32:54 +00:00
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
/** @brief Called as a request to write a specific debug message
|
|
|
|
* @param message Debug message. Never longer than
|
|
|
|
* MAX_LOG_MESSAGE_LENGTH characters (exluding the '0').
|
|
|
|
* @note The message string is only valid until the scope of
|
|
|
|
* the function is left.
|
2009-01-23 21:06:43 +00:00
|
|
|
*/
|
|
|
|
virtual void OnDebug(const char* message)= 0;
|
|
|
|
|
2009-05-28 11:32:54 +00:00
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
/** @brief Called as a request to write a specific info message
|
|
|
|
* @param message Info message. Never longer than
|
|
|
|
* MAX_LOG_MESSAGE_LENGTH characters (exluding the '0').
|
|
|
|
* @note The message string is only valid until the scope of
|
|
|
|
* the function is left.
|
2009-01-23 21:06:43 +00:00
|
|
|
*/
|
|
|
|
virtual void OnInfo(const char* message) = 0;
|
|
|
|
|
2009-05-28 11:32:54 +00:00
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
/** @brief Called as a request to write a specific warn message
|
|
|
|
* @param message Warn message. Never longer than
|
|
|
|
* MAX_LOG_MESSAGE_LENGTH characters (exluding the '0').
|
|
|
|
* @note The message string is only valid until the scope of
|
|
|
|
* the function is left.
|
2009-01-23 21:06:43 +00:00
|
|
|
*/
|
|
|
|
virtual void OnWarn(const char* essage) = 0;
|
|
|
|
|
2009-05-28 11:32:54 +00:00
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
/** @brief Called as a request to write a specific error message
|
|
|
|
* @param message Error message. Never longer than
|
|
|
|
* MAX_LOG_MESSAGE_LENGTH characters (exluding the '0').
|
|
|
|
* @note The message string is only valid until the scope of
|
|
|
|
* the function is left.
|
2009-01-23 21:06:43 +00:00
|
|
|
*/
|
|
|
|
virtual void OnError(const char* message) = 0;
|
General
- Added format auto-detection to most loaders
- Simplified BaseImporter::CanRead() with some utility methods
- improved fast_atof -> no overruns anymore. Fuck you, irrlicht.
- added assimp_cmd tool to allow command line model processing. Mainly adebugging tool for internal purposes, but others might find it useful, too.
- vc8/vc9: revision number is now written to DLL version header
- mkutil: some batch scripts to simplify tagging & building of release versions
- some API cleanup
- fixing some doxygen markup (+now explicit use of @file <filename>)
- Icon for assimp_view and assimp_cmd
3DS
- Normal vectors are not anymore inverted in some cases
- Improved pivot handling
- Improved handling of x-flipped meshes
Collada
- fixed a minor bug (visual_scene element)
LWS
- WIP implementation. No animations yet, some bugs and crashes.
- Animation system remains disabled, WIP code
- many test files for LWS, but most of them test the anim support, which is, read above, currently disabled.
STL
- fixing a log warning which appears for every model
- added binary&ascii test spider, exported from truespace
MD3
- Cleaning up output tags for automatically joined player models.
IRR
- Fixing coordinate system issues.
- Instance handling improved.
- Some of the reported crashes not yet fixed.
PretransformVertices
- Numerous performance improvements.
- Added config option to preserve the hierarchy during the step.
RemoveRedundantMaterials
- Added config option to specify a list of materials which are kept in every case.
UNREAL
- Added support for the old unreal data format (*.a,*.d,*.uc)
- tested only with exports from Milkshape
- more Unreal stuff to come soon
git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@356 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
2009-03-05 22:32:13 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
|
|
//! Logger severity
|
|
|
|
LogSeverity m_Severity;
|
2008-05-07 21:33:35 +00:00
|
|
|
};
|
2009-01-12 22:06:54 +00:00
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------------
|
2008-05-07 21:33:35 +00:00
|
|
|
// Default constructor
|
General
- Added format auto-detection to most loaders
- Simplified BaseImporter::CanRead() with some utility methods
- improved fast_atof -> no overruns anymore. Fuck you, irrlicht.
- added assimp_cmd tool to allow command line model processing. Mainly adebugging tool for internal purposes, but others might find it useful, too.
- vc8/vc9: revision number is now written to DLL version header
- mkutil: some batch scripts to simplify tagging & building of release versions
- some API cleanup
- fixing some doxygen markup (+now explicit use of @file <filename>)
- Icon for assimp_view and assimp_cmd
3DS
- Normal vectors are not anymore inverted in some cases
- Improved pivot handling
- Improved handling of x-flipped meshes
Collada
- fixed a minor bug (visual_scene element)
LWS
- WIP implementation. No animations yet, some bugs and crashes.
- Animation system remains disabled, WIP code
- many test files for LWS, but most of them test the anim support, which is, read above, currently disabled.
STL
- fixing a log warning which appears for every model
- added binary&ascii test spider, exported from truespace
MD3
- Cleaning up output tags for automatically joined player models.
IRR
- Fixing coordinate system issues.
- Instance handling improved.
- Some of the reported crashes not yet fixed.
PretransformVertices
- Numerous performance improvements.
- Added config option to preserve the hierarchy during the step.
RemoveRedundantMaterials
- Added config option to specify a list of materials which are kept in every case.
UNREAL
- Added support for the old unreal data format (*.a,*.d,*.uc)
- tested only with exports from Milkshape
- more Unreal stuff to come soon
git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@356 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
2009-03-05 22:32:13 +00:00
|
|
|
inline Logger::Logger() {
|
|
|
|
setLogSeverity(NORMAL);
|
2008-05-07 21:33:35 +00:00
|
|
|
}
|
|
|
|
|
2009-01-12 22:06:54 +00:00
|
|
|
// ----------------------------------------------------------------------------------
|
2008-05-07 21:33:35 +00:00
|
|
|
// Virtual destructor
|
|
|
|
inline Logger::~Logger()
|
|
|
|
{
|
|
|
|
}
|
General
- Added format auto-detection to most loaders
- Simplified BaseImporter::CanRead() with some utility methods
- improved fast_atof -> no overruns anymore. Fuck you, irrlicht.
- added assimp_cmd tool to allow command line model processing. Mainly adebugging tool for internal purposes, but others might find it useful, too.
- vc8/vc9: revision number is now written to DLL version header
- mkutil: some batch scripts to simplify tagging & building of release versions
- some API cleanup
- fixing some doxygen markup (+now explicit use of @file <filename>)
- Icon for assimp_view and assimp_cmd
3DS
- Normal vectors are not anymore inverted in some cases
- Improved pivot handling
- Improved handling of x-flipped meshes
Collada
- fixed a minor bug (visual_scene element)
LWS
- WIP implementation. No animations yet, some bugs and crashes.
- Animation system remains disabled, WIP code
- many test files for LWS, but most of them test the anim support, which is, read above, currently disabled.
STL
- fixing a log warning which appears for every model
- added binary&ascii test spider, exported from truespace
MD3
- Cleaning up output tags for automatically joined player models.
IRR
- Fixing coordinate system issues.
- Instance handling improved.
- Some of the reported crashes not yet fixed.
PretransformVertices
- Numerous performance improvements.
- Added config option to preserve the hierarchy during the step.
RemoveRedundantMaterials
- Added config option to specify a list of materials which are kept in every case.
UNREAL
- Added support for the old unreal data format (*.a,*.d,*.uc)
- tested only with exports from Milkshape
- more Unreal stuff to come soon
git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@356 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
2009-03-05 22:32:13 +00:00
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------------
|
|
|
|
// Construction with given logging severity
|
|
|
|
inline Logger::Logger(LogSeverity severity) {
|
|
|
|
setLogSeverity(severity);
|
|
|
|
}
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------------
|
|
|
|
// Log severity setter
|
|
|
|
inline void Logger::setLogSeverity(LogSeverity log_severity){
|
|
|
|
m_Severity = log_severity;
|
|
|
|
}
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------------
|
|
|
|
// Log severity getter
|
|
|
|
inline Logger::LogSeverity Logger::getLogSeverity() const {
|
|
|
|
return m_Severity;
|
|
|
|
}
|
|
|
|
|
2009-01-12 22:06:54 +00:00
|
|
|
// ----------------------------------------------------------------------------------
|
2008-05-07 21:33:35 +00:00
|
|
|
|
|
|
|
} // Namespace Assimp
|
|
|
|
|
2009-01-12 22:06:54 +00:00
|
|
|
#endif // !! INCLUDED_AI_LOGGER_H
|