00001 #ifndef X3DTK_CLOG_H
00002 #define X3DTK_CLOG_H
00003
00004 #include <fstream>
00005 #include <iostream>
00006 #include "SFString.h"
00007
00008 #include "Platform.h"
00009
00010 namespace X3DTK {
00011
00017 class X3DOfstream : public std::fstream
00018 {
00019 public:
00021 X3DOfstream(const char *path);
00023 ~X3DOfstream();
00024
00026 void setPath(const char *path);
00028 void removeLog();
00029
00030 private:
00031 void findPath(const char *path);
00032
00033 char *_cwd;
00034 };
00035
00036 extern X3DOfstream cx3d;
00037
00038 }
00039
00040 #endif