FUtils/FUErrorLog.h

Go to the documentation of this file.
00001 /*
00002     Copyright (C) 2005-2007 Feeling Software Inc.
00003     Portions of the code are:
00004     Copyright (C) 2005-2007 Sony Computer Entertainment America
00005     
00006     MIT License: http://www.opensource.org/licenses/mit-license.php
00007 */
00008 
00014 #ifndef _FU_ERROR_LOG_H_
00015 #define _FU_ERROR_LOG_H_
00016 
00017 #ifndef _FU_ERROR_H_
00018 #include "FUtils/FUError.h"
00019 #endif // _FU_ERROR_H_
00020 
00021 class FULogFile;
00022 
00029 class FCOLLADA_EXPORT FUErrorLog
00030 {
00031 private:
00032     FULogFile* logFile;
00033     uint32 counts[FUError::LEVEL_COUNT];
00034     FUError::Level minimumLevel;
00035 
00036 public:
00043     FUErrorLog(const fchar* logFilename, FUError::Level errorLevel);
00044 
00047     ~FUErrorLog();
00048 
00052     FULogFile* GetLogFile() { return logFile; }
00053 
00058     void QueryNewMessages(uint32& debug, uint32& warnings, uint32& errors);
00059 
00060 private:
00061     void OnErrorCallback(FUError::Level level, uint32 errorCode, uint32 argument);
00062 };
00063 
00064 #endif // _FU_ERROR_LOG_H_
00065 

Generated on Thu Feb 14 16:58:35 2008 for FCollada by  doxygen 1.4.6-NO