00001 /* 00002 * LogFile.h 00003 * 00004 * Part of Fly! Legacy project 00005 * 00006 * Copyright 2000-2004 Chris Wallace 00007 * 00008 * Fly! Legacy is free software; you can redistribute it and/or modify 00009 * it under the terms of the GNU General Public License as published by 00010 * the Free Software Foundation; either version 2 of the License, or 00011 * (at your option) any later version. 00012 * 00013 * Fly! Legacy is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 * GNU General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU General Public License 00019 * along with Fly! Legacy; if not, write to the Free Software 00020 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00021 */ 00022 00027 #ifndef LOGFILE_H 00028 #define LOGFILE_H 00029 00030 00031 #include <stdarg.h> 00032 #include <stdio.h> 00033 00034 // 00035 // CLogFile 00036 // 00037 class CLogFile { 00038 public: 00039 // Constructors / destructor 00040 CLogFile (const char*, const char* mode); 00041 ~CLogFile (void); 00042 00043 // CLogFile methods 00044 FILE *GetFile (void); 00045 void Write (const char*, ...); 00046 00047 protected: 00048 FILE *f; 00049 }; 00050 00051 #endif // LOGFILE_H 00052
|
|
Documentation generated by
|