Log.h
Upload User: sz83729876
Upload Date: 2013-03-07
Package Size: 4140k
Code Size: 1k
Category:

OpenGL program

Development Platform:

Windows_Unix

  1. #ifndef _LOG_H_
  2. #define _LOG_H_
  3. #include <stdio.h>
  4. #include "Stdinc.h"
  5. class Log // no singleton, because it's used to often to
  6.           // return the instance every time.
  7. {
  8.     private:
  9.         static FILE* m_pFileHandle;
  10.         static std::string m_strFile;
  11.         static std::string m_strSub;
  12.     public:
  13.         static bool Initialize( std::string strFile );
  14.         static void Cleanup();
  15.         static void Print( const char *str, ... );
  16.         static void SetSub( std::string str );  
  17. };
  18. #endif