00001
00002
00003
00004
00005
00006
00007
00008
00014 #ifndef _FU_LOG_FILE_H_
00015 #define _FU_LOG_FILE_H_
00016
00017 class FUFile;
00018
00025 class FCOLLADA_EXPORT FULogFile
00026 {
00027 private:
00028 FUFile* file;
00029
00030 public:
00035 FULogFile(const fchar* filename);
00036
00038 ~FULogFile();
00039
00042 inline FUFile* GetFile() { return file; }
00043 inline const FUFile* GetFile() const { return file; }
00051 void WriteLine(const char* filename, uint32 linenum, const char* message, ...);
00052 #ifdef UNICODE
00053 void WriteLine(const char* filename, uint32 line, const fchar* message, ...);
00054 #endif // UNICODE
00055
00059 void WriteLine(const char* message, ...);
00060 #ifdef UNICODE
00061 void WriteLine(const fchar* message, ...);
00062 #endif // UNICODE
00063
00068 void WriteLineV(const char* message, va_list& vars);
00069 #ifdef UNICODE
00070 void WriteLineV(const fchar* message, va_list& vars);
00071 #endif // UNICODE
00072
00074 void Flush();
00075 };
00076
00077 #endif // _FU_LOG_FILE_H_