Derived streambuf

Discussion in 'C++' started by tryptik@gmail.com, Oct 2, 2006.

  1. Guest

    All-

    I have been looking at all the info I can find on deriving streambuf
    objects, but I need some advice. I wish to derive a custom streambuf
    that filters out c++ style comments. I have looked at the boost libs
    and have attempted to impliment their filtered streambuf, but it does
    not seemt o support seekg() and tellg() operations that I need.

    My query is, are there any good refrerences for deriving a streambuf
    that will work with stringstreams and filestreams? If one is to
    override the streambuf's operators to filter out comments, which ones
    would need to be re-written?

    Thanks

    -J
     
    , Oct 2, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Peter Jansson
    Replies:
    1
    Views:
    523
    David Rubin
    Nov 8, 2004
  2. Replies:
    4
    Views:
    428
    Alf P. Steinbach
    May 23, 2007
  3. Replies:
    1
    Views:
    407
    myork
    May 23, 2007
  4. Replies:
    1
    Views:
    398
    Victor Bazarov
    May 23, 2007
  5. Christopher Pisz
    Replies:
    2
    Views:
    609
    James Kanze
    Dec 12, 2007
Loading...

Share This Page