"John Harrison" <john_andronicus@hotmail.com> wrote in message
news:c1j55o$1bfr6a$1@ID-196037.news.uni-berlin.de...[color=blue]
>
> "Christopher Benson-Manica" <ataru@nospam.cyberspace.org> wrote in message
> news:c1j47g$bd6$1@chessie.cirr.com...[color=green]
> > John Harrison <john_andronicus@hotmail.com> spoke thus:
> >[color=darkred]
> > > Yes derive from streambuf, that is the usual way to create your own[/color][/color]
> stream[color=green][color=darkred]
> > > types. You leave the already defined interface for istream/ostream[/color][/color][/color]
alone[color=blue][color=green][color=darkred]
> > > (instead trying to duplicate it as you are doing) and just use a[/color][/color]
> streambuf[color=green][color=darkred]
> > > derived class to direct where the input/output is really going. Get a[/color][/color]
> good[color=green][color=darkred]
> > > book on the standard library for details on how do to this.[/color]
> >
> > I see. In that case, two questions:
> >
> > 1) What such book would you suggest? (one that's likely to be in a
> > bookstore)[/color]
>
> The C++ Standard Library by Josuttis.[/color]
That is indeed a great book, and has some good info on iostreams.
I'd also recommend to anyone delving into iostreams to get this
one also:
http://www.langer.camelot.de/iostreams.html
IMO it's *very* good at explaining the 'nitty-gritty' of this stuff.
I've found both of these books at any bookstore with a reasonably
sized computer section. I'm sure online booksellers have them too.
-Mike