Log.h

Go to the documentation of this file.
00001 /*
00002  * $Id: Log.h 562 2007-12-02 08:04:16Z mindstorm2600 $
00003  *
00004  * X-VR2 
00005  * 
00006  * Copyright (C) Juan V. Guerrero 2007
00007  * 
00008  * Juan V. Guerrero <mindstorm2600@users.sourceforge.net>
00009  * 
00010  * This program is free software, distributed under the terms of
00011  * the GNU General Public License Version 2. See the LICENSE file
00012  * at the top of the source tree.
00013  */
00014 #ifndef __XVR2_Log_H__
00015 #define __XVR2_Log_H__
00016 
00017 #include<xvr2/CoreExceptions.h>
00018 #include<xvr2/StdioOutputFile.h>
00019 #include<xvr2/StringBuffer.h>
00020 
00021 namespace xvr2{
00023         class Log:public StdioOutputFile {
00024                 private:
00026                         StringBuffer ldata;
00027                 protected:
00029                         bool show_times;
00030                 public:
00031                         Log(bool _show_times = true);
00032                         void open(const String &_fname);
00036                         Log(const String &fname, bool _show_times = true);
00037                         virtual ~Log();
00039                         Log &operator << (const String &s);
00043                         void flush();
00044                         virtual void close();
00045         };
00046 }
00047 
00048 #endif
00049 

Generated on Fri Jun 20 22:55:47 2008 for X-VR2 SDK by  doxygen 1.5.5