wvfile.h

00001 /* -*- Mode: C++ -*-
00002  * Worldvisions Weaver Software:
00003  *   Copyright (C) 1997-2002 Net Integration Technologies, Inc.
00004  *
00005  * A simple class to access filesystem files using WvStreams.
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     // Force select to always return true
00046     bool skip_select;
00047     
00048     virtual bool pre_select(SelectInfo &si);
00049 };
00050 
00051 #endif // __WVFILE_H

Generated on Wed Jul 12 17:53:20 2006 for WvStreams by  doxygen 1.4.7