public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* a question about inheriting from std::iostream
@ 2004-08-31  6:59 ritesh parmar
  0 siblings, 0 replies; only message in thread
From: ritesh parmar @ 2004-08-31  6:59 UTC (permalink / raw)
  To: gcc help mailing list


I'm not sure if this question has been asked and i couldn't find an
example in all of my searches. But I'd like to write a class that would
perform substitution of keywords while some other class is reading from
it. 
  I was thinking about getting streambuf from ios::rdbuf() and
performing all the substitutions and then setting it back but that
approach make take some time with big files. If my understanding is
correct about how streambuf class works.
  Can anybody suggest a way of inheriting from iostream and doing the
substitution on-the-fly ?


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-08-31  6:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-31  6:59 a question about inheriting from std::iostream ritesh parmar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).