On Thu, Oct 18, 2001 at 11:43:20AM +0200, Lars Gullik Bjønnes wrote: > | I'm interested in doing something like this. Again, see my comments to > | Asger's comments. I'll come back to the list as the code develops (or not!) > > So what you need to do is to create: > > class process_stream : public iostream; > class iprocess_stream : public istream; > class oprocess_stream : public ostream; > > and a class process_buf : public streambuf; > > and off you go... > (and put it under Boost license or LGPL)
please do, I want this in one of my projects too (is the Boost license actually approved GPL-compatible though ?) The API would have to be different though, wouldn't it ? Or I suppose the fork() could happen lazily. At the least I would need an estream as well ... regards john -- "There are two kinds of fool. One says, 'This is old, and therefore good.' And one says, 'This is new, and therefore better'." - John Brunner