00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00020 #ifndef flc_fstream_sys_win_H
00021 #define flc_fstream_sys_win_H
00022
00023 #include <falcon/fstream.h>
00024 #include <windows.h>
00025 #include <stdlib.h>
00026
00027 namespace Falcon {
00028
00032 class FALCON_DYN_CLASS WinFileSysData: public FileSysData
00033 {
00034 public:
00035 typedef enum {
00036 e_dirIn,
00037 e_dirOut
00038 } t_direction;
00039
00040 HANDLE m_handle;
00041 DWORD m_lastError;
00042
00043 bool m_isConsole;
00044 bool m_isPipe;
00045 t_direction m_direction;
00046
00047 WinFileSysData( HANDLE handle, DWORD m_lastError, bool console=false, t_direction dir=e_dirIn, bool pipe = false ):
00048 m_handle( handle ),
00049 m_lastError( m_lastError ),
00050 m_isConsole( console ),
00051 m_direction( dir ),
00052 m_isPipe( pipe )
00053 {}
00054
00055 virtual FileSysData *dup();
00056 };
00057
00058 }
00059
00060 #endif
00061
00062