wvistreamlist.h

00001 /* -*- Mode: C++ -*-
00002  * Worldvisions Weaver Software:
00003  *   Copyright (C) 1997-2002 Net Integration Technologies, Inc.
00004  * 
00005  * FIXME: Suspiciously similar to wvstreamlist, and with tons of duplicated
00006  * code.  Blech.
00007  */ 
00008 #ifndef __WVISTREAMLIST_H
00009 #define __WVISTREAMLIST_H
00010 
00011 #include "wvstream.h"
00012 
00014 DeclareWvList2(WvIStreamListBase, IWvStream);
00015 
00020 class WvIStreamList : public WvStream, public WvIStreamListBase
00021 {
00022 public:
00023     WvIStreamList();
00024     virtual ~WvIStreamList();
00025     virtual bool isok() const;
00026     virtual bool pre_select(SelectInfo &si);
00027     virtual bool post_select(SelectInfo &si);
00028     virtual void execute();
00029     
00030     void unlink(IWvStream *data)
00031         { sure_thing.unlink(data); WvIStreamListBase::unlink(data); }
00032     
00033     bool auto_prune; // remove !isok() streams from the list automatically?
00034     static WvIStreamList globallist;
00035     
00036 protected:
00037     WvIStreamListBase sure_thing;
00038 
00039 private:
00040     bool in_select;
00041 
00042 #ifndef _WIN32
00043     static void onfork(pid_t p);
00044 #endif
00045 };
00046 
00047 #endif // __WVISTREAMLIST_H

Generated on Sun Sep 24 20:10:51 2006 for WvStreams by  doxygen 1.4.7