[Dev-C++] Is there a simple way to create my own C++ I/O stream?
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: David M. <dml...@co...> - 2004-06-23 04:00:50
|
I was wondering if anyone knows a good tutorial or paper on creating new
C++ iostream. I had 2 possible uses for it:
The interface for a queue. << - Insert end, >> - get front.
Wrapper for C I/O (especially compression) API. e.g.
ofstream_bz2 some_file("data.bin"); //.bz2 is added automatically
some_file << "some data"; //Data is automatically compressed in the bz2
format.
All the tutorial I found on google involve a very long complicated
sequence of steps and all seemed to involve the underlying stream buffer.
Thanks in Advance
David McKen
|