public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: ritesh parmar <parmarp@charter.net>
To: gcc help mailing list <gcc-help@gcc.gnu.org>
Subject: a question about inheriting from std::iostream
Date: Tue, 31 Aug 2004 06:59:00 -0000	[thread overview]
Message-ID: <1093923575.6702.11.camel@nova.dominion.com> (raw)


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 ?


                 reply	other threads:[~2004-08-31  6:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1093923575.6702.11.camel@nova.dominion.com \
    --to=parmarp@charter.net \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).