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:
00033 WvFile();
00034
00036 WvFile(int rwfd);
00037
00039 WvFile(WvStringParm filename, int mode, int create_mode = 0666);
00040 bool open(WvStringParm filename, int mode, int create_mode = 0666);
00041 bool open(int _rwfd);
00042
00043 bool readable, writable;
00044
00045
00046 bool skip_select;
00047
00048 virtual bool pre_select(SelectInfo &si);
00049 };
00050
00051 #endif // __WVFILE_H