Vis 2 Demo  1.0
Technical illustration type real-time rendering of geometry
 All Classes Namespaces Files Functions Variables Typedefs Macros
LogFile.h
Go to the documentation of this file.
1 #ifndef __LOG_FILE_H__
2 #define __LOG_FILE_H__
3 
5 
11 #include <cstdio>
12 
13 class LogFile
14 {
15 public:
17 
23  LogFile( char *file_name, bool ovewrite);
25 
28  ~LogFile();
32  bool valid() const {return f != 0;}
33 
34 
38  void print(const char *text);
39 
40 protected:
41  std::FILE *f;
42 
43 private:
44  LogFile( const LogFile& );
45 };
46 
47 #endif