10#include "wvfdstream.h"
28class WvFile :
public WvFDStream
38 WvFile(WvStringParm filename,
int mode,
int create_mode = 0666);
39 bool open(WvStringParm filename,
int mode,
int create_mode = 0666);
42 bool readable, writable;
48 const char *wstype()
const {
return "WvFile"; }
WvFile implements a stream connected to a file or Unix device.
WvFile(int rwfd)
Create a WvFile from an existing fd.
virtual bool post_select(SelectInfo &si)
post_select() is called after select(), and returns true if this object is now ready.
WvFile()
Create an empty WvFile that you'll open later with open().
virtual void pre_select(SelectInfo &si)
pre_select() sets up for eventually calling select().
WvFile(WvStringParm filename, int mode, int create_mode=0666)
Create a WvFile given options like open().
the data structure used by pre_select()/post_select() and internally by select().