This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Getting a file descriptor or a file number) for an fstream (Was: Accessing the underlying file descriptor in fstream)
- To: Theodore Papadopoulo <Theodore dot Papadopoulo at sophia dot inria dot fr>
- Subject: Re: Getting a file descriptor or a file number) for an fstream (Was: Accessing the underlying file descriptor in fstream)
- From: Gabriel Dos Reis <gdr at codesourcery dot com>
- Date: 14 Feb 2001 17:51:03 +0100
- Cc: Gabriel Dos Reis <gdr at codesourcery dot com>, libstdc++ at gcc dot gnu dot org
- Organization: CodeSourcery, LLC
- References: <200102141352.f1EDqE821013@mururoa.inria.fr>
Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr> writes:
[...]
| The problem is not so how is implemented iostream but can we convert
| what is used to a FILE* or an int (to keep only my 1) and 2)
| variants).
If your need is to have a C++ ISOstream operating over a FILE* C or a
int, then it should be not be hard to implement your own class
(derived from standard stream classes) to implement your policy.
Passing them back to the rest of the standard algorithms should be
trouble-less.
-- Gaby
CodeSourcery, LLC http://www.codesourcery.com