00001
00002
00003
00004
00005
00006
00007
00008
00010
00011
00012 #ifndef __LIDAR_FILE_IO_H__
00013 #define __LIDAR_FILE_IO_H__
00014
00015 #include "lidar/IO.h"
00016
00017 LT_BEGIN_LIDAR_NAMESPACE
00018
00029 class FileIO : public IO
00030 {
00031 CONCRETE_OBJECT(FileIO);
00032 public:
00033
00050 void init(const char *path, const char *mode);
00051 #ifdef _WIN32
00052
00068 void init(const wchar_t *path, const char *mode);
00069 #endif
00070
00080 void init(const char *tempdir);
00081 #ifdef _WIN32
00082
00091 void init(const wchar_t *tempdir);
00092 #endif
00093
00094 void unlink(void);
00095
00103 static void deleteFile(const char *path);
00111 static bool fileExists(const char *path);
00112
00113 protected:
00114 class Imp;
00115 bool m_unlinkFile;
00116 };
00117
00118 LT_END_LIDAR_NAMESPACE
00119 #endif // __LIDAR_FILE_IO_H__