🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c++
Article #1552

Re: My .02 on the iostreams

#1552
From: Nicholas Scott
Date: Thu, 03 Aug 1995 02:32
33 lines
1594 bytes
jordanz@altura.com (Jordan Zimmerman) wrote:

>I realize it's much too late for this, but I need to get it off my chest...

>It's annoying that the input/output operators (<< >>) are only available
>for formatted input/output (i.e. the number 1234 turns into the text
>representation "1234").  For my work, I almost never need to do this. 
>What I need is to input/output in binary representation.  It seems my only

It is a simple matter to build the class you want.
There are a lot of things that iostreams do not do out of the box...
no matter... they are designed for extension... 

1. Substitute your own source and sink.
2. Introduce new types for insertion and extraction.
3. Write your own formatting primitives (manipulators)

There are at least two books on iostreams available in bookstores.

Have fun. I did.

>option is to sub class the various istream/ostream classes (or use the
>read/write members).

>-- 
>Jordan Zimmerman, Altura Software
>home page: http://www.altura.com/jordanz/home.html
>Coming to you fast as lightning on a 9500/120!

---
"Once upon a time, ya dressed so fine,
threw the bums a dime, in your prime.
Didn't you" Shabtai Zissel ben Avraham
Technical Details
Message-ID: <3vpcdf$euo@steel.interlog.com>
Path: arc1-ca.pugleaf.net!interlog.com!news
References: <jordanz-0208951131510001@204.147.232.52>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!interlog.com!news
From: object@interlog.com (Nicholas Scott)
Newsgroups: comp.std.c++
Subject: Re: My .02 on the iostreams
Date: Thu, 03 Aug 1995 02:32:41 GMT
Organization: The Object Group
Message-ID: <3vpcdf$euo@steel.interlog.com>
References: <jordanz-0208951131510001@204.147.232.52>
NNTP-Posting-Host: object.interlog.com
X-Newsreader: Forte Free Agent 1.0.82