Inherited by Assimp::DefaultLogger, and Assimp::NullLogger.
Public Types | |
Public Member Functions | |
| virtual bool | attachStream (LogStream *pStream, unsigned int severity=DEBUGGING|ERR|WARN|INFO)=0 |
| Attach a new logstream. | |
| void | debug (const std::string &message) |
| Writes a debug message. | |
| virtual bool | detatchStream (LogStream *pStream, unsigned int severity=DEBUGGING|ERR|WARN|INFO)=0 |
| Detach a still attached stream from the logger (or modify the filter flags bits). | |
| void | error (const std::string &message) |
| Writes an error message. | |
| LogSeverity | getLogSeverity () const |
| Get the current log severity. | |
| void | info (const std::string &message) |
| Writes a info message. | |
| void | setLogSeverity (LogSeverity log_severity) |
| Set a new log severity. | |
| void | warn (const std::string &message) |
| Writes a warning message. | |
| virtual | ~Logger () |
| Virtual destructor. | |
Protected Member Functions | |
| Logger (LogSeverity severity) | |
| Construction with a given log severity. | |
| Logger () | |
| Default constructor. | |
| virtual void | OnDebug (const char *message)=0 |
| Called as a request to write a specific debug message. | |
| virtual void | OnError (const char *message)=0 |
| Called as a request to write a specific error message. | |
| virtual void | OnInfo (const char *message)=0 |
| Called as a request to write a specific info message. | |
| virtual void | OnWarn (const char *essage)=0 |
| Called as a request to write a specific warn message. | |
Protected Attributes | |
| LogSeverity | m_Severity |
| Logger severity. | |
Assimp provides a default implementation and uses it for almost all logging stuff ('DefaultLogger'). This class defines just basic logging behaviour and is not of interest for you. Instead, take a look at DefaultLogger.
| Assimp::Logger::~Logger | ( | ) | [inline, virtual] |
Virtual destructor.
| Assimp::Logger::Logger | ( | ) | [inline, protected] |
Default constructor.
| Assimp::Logger::Logger | ( | LogSeverity | severity | ) | [inline, protected] |
Construction with a given log severity.
| virtual bool Assimp::Logger::attachStream | ( | LogStream * | pStream, | |
| unsigned int | severity = DEBUGGING|ERR|WARN|INFO | |||
| ) | [pure virtual] |
Attach a new logstream.
The logger takes ownership of the stream and is responsible for its destruction (which is done using delete when the logger itself is destroyed). Call detachStream to detach a stream and to gain ownership of it again.
| pStream | Logstream to attach | |
| severity | Message filter, specified which types of log messages are dispatched to the stream. Provide a bitwise combination of the ErrorSeverity flags. |
Implemented in Assimp::DefaultLogger, and Assimp::NullLogger.
| void Assimp::Logger::debug | ( | const std::string & | message | ) |
Writes a debug message.
| message | Debug message |
| virtual bool Assimp::Logger::detatchStream | ( | LogStream * | pStream, | |
| unsigned int | severity = DEBUGGING|ERR|WARN|INFO | |||
| ) | [pure virtual] |
Detach a still attached stream from the logger (or modify the filter flags bits).
| pStream | Logstream instance for detaching | |
| 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. |
Implemented in Assimp::DefaultLogger, and Assimp::NullLogger.
| void Assimp::Logger::error | ( | const std::string & | message | ) |
Writes an error message.
| message | Error message |
| Logger::LogSeverity Assimp::Logger::getLogSeverity | ( | ) | const [inline] |
Get the current log severity.
| void Assimp::Logger::info | ( | const std::string & | message | ) |
Writes a info message.
| message | Info message |
| virtual void Assimp::Logger::OnDebug | ( | const char * | message | ) | [protected, pure virtual] |
Called as a request to write a specific debug message.
| message | Debug message. Never longer than MAX_LOG_MESSAGE_LENGTH characters (exluding the '0'). |
Implemented in Assimp::NullLogger.
| virtual void Assimp::Logger::OnError | ( | const char * | message | ) | [protected, pure virtual] |
Called as a request to write a specific error message.
| message | Error message. Never longer than MAX_LOG_MESSAGE_LENGTH characters (exluding the '0'). |
Implemented in Assimp::NullLogger.
| virtual void Assimp::Logger::OnInfo | ( | const char * | message | ) | [protected, pure virtual] |
Called as a request to write a specific info message.
| message | Info message. Never longer than MAX_LOG_MESSAGE_LENGTH characters (exluding the '0'). |
Implemented in Assimp::NullLogger.
| virtual void Assimp::Logger::OnWarn | ( | const char * | essage | ) | [protected, pure virtual] |
Called as a request to write a specific warn message.
| message | Warn message. Never longer than MAX_LOG_MESSAGE_LENGTH characters (exluding the '0'). |
Implemented in Assimp::NullLogger.
| void Assimp::Logger::setLogSeverity | ( | LogSeverity | log_severity | ) | [inline] |
Set a new log severity.
| log_severity | New severity for logging |
| void Assimp::Logger::warn | ( | const std::string & | message | ) |
Writes a warning message.
| message | Warn message |
LogSeverity Assimp::Logger::m_Severity [protected] |
Logger severity.
1.5.8