Archived

This topic is now archived and is closed to further replies.

Binary stream class

This topic is 5374 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I''d like to use the iostream model of C++ to write a binarystream class that allows use of manipulators such as >> and <<. I know the stream model uses several different classes, and I''m not sure where I would write mine so that it would behave as much like normal streams as possible.

Share this post


Link to post
Share on other sites
The main task is in deriving a new streambuf class, really. You don''t need a new stream class, but if you write one you save yourself a couple of lines of code each time in not having to explicitly assign the binary streambuf to an istream.

[ MSVC Fixes | STL Docs | SDL | Game AI | Sockets | C++ Faq Lite | Boost
Asking Questions | Organising code files | My stuff | Tiny XML | STLPort]

Share this post


Link to post
Share on other sites