Topic: creating filebuf-like template?
Author: kcl@net2net.com (Kevin Little)
Date: 1997/08/21 Raw View
I'm trying to wrapper the MS COM object IStream such that it can be used within iostream,
etc. My initial analysis says I should clone basic_filebuf<>, thus creating a new template
derived from basic_streambuf<>, and replace the _Filet-style low level IO with IStream.
Deriving from basic_filebuf may be another possibility, but the actual IO calls are
scattered throughout the template, so cloning seems easier to this Standard Library
novice!
Questions:
1) Is this the best approach? Am I cracking eggs with a sledge hammer here?
2) Is the *extremely* illegible implementation in MSVC 5.0 of the ios templates/classes
intentional? (what a mess...)
TIA,
-k
=== These are my opinions, not Net2Net's -- I found them lying around in my head. ===
---
[ comp.std.c++ is moderated. To submit articles: try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ FAQ: http://reality.sgi.com/employees/austern_mti/std-c++/faq.html ]
[ Policy: http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
[ Comments? mailto:std-c++-request@ncar.ucar.edu ]