- Main Page
- Modules
- Namespaces
- Classes
- Files
- Related Pages

- File List
- File Members

# FUtils/FULogFile.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_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_