Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

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:
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     // Force select to always return true
00039     bool skip_select;
00040     
00041     virtual bool pre_select(SelectInfo &si);
00042 };
00043 
00044 #endif // __WVFILE_H

Generated on Sun Jul 10 16:27:04 2005 for WvStreams by  doxygen 1.4.0