help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Help with stdio_filebuf


From: E. Robert Tisdale
Subject: Help with stdio_filebuf
Date: Sat, 25 Sep 2004 23:59:41 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040922

I need a base class
that will allow me to read a stream of scancodes from my keyboard
just as if it was reading from any other input file stream.

I have an old version of this class derived from ifstream
which opens /dev/console and then retrieve the file descriptor from it
but now, when I compile it,

            int         fd = (this->rdbuf())->fd();

 I get:

        ../include/kstream.h:213: error: \
        'struct std::basic_filebuf<char, std::char_traits<char> >' \
        has no member named 'fd'

Can I use stdio_filebuf to do this?
And, if so, a few clues about how would be very helpful.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]