00001
00002
00003
00004
00005
00006
00007 #ifndef __WVFILE_H
00008 #define __WVFILE_H
00009
00010 #include "wvfdstream.h"
00011 #include <fcntl.h>
00012
00013 #ifdef _WIN32
00014 #include <io.h>
00015 #define O_NONBLOCK 0
00016 #define O_LARGEFILE 0
00017 #define fcntl(a,b,c)
00018 #endif
00019
00029 class WvFile : public WvFDStream
00030 {
00031 public:
00032 WvFile(int rwfd = -1);
00033 WvFile(WvStringParm filename, int mode, int create_mode = 0666);
00034 bool open(WvStringParm filename, int mode, int create_mode = 0666);
00035
00036 bool readable, writable;
00037
00038
00039 bool skip_select;
00040
00041 virtual bool pre_select(SelectInfo &si);
00042 };
00043
00044 #endif // __WVFILE_H