Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

KernelIstreamLexer< InputStream > Class Template Reference

#include <KernelIstreamLexer.h>

Collaboration diagram for KernelIstreamLexer< InputStream >:

Collaboration graph
[legend]
List of all members.

Public Methods

 KernelIstreamLexer (InputStream &stream)
virtual int nextChar ()

Protected Attributes

InputStream & _myInputStream

template<typename InputStream>
class KernelIstreamLexer< InputStream >


Constructor & Destructor Documentation

template<typename InputStream>
KernelIstreamLexer< InputStream >::KernelIstreamLexer InputStream &    stream
 

Definition at line 26 of file KernelIstreamLexer.h.

00026                                                                         :
00027    _myInputStream ( stream )
00028 {
00029 
00030 }


Member Function Documentation

template<typename InputStream>
int KernelIstreamLexer< InputStream >::nextChar   [virtual]
 

Definition at line 34 of file KernelIstreamLexer.h.

References KernelIstreamLexer< InputStream >::_myInputStream.

00035 {
00036    char c ;
00037    _myInputStream.get(c) ;
00038    if ( ! _myInputStream.eof() ) 
00039       {
00040          return int(c) ;
00041       }
00042    else
00043       {
00044          return EOF ;
00045       }
00046 }


Member Data Documentation

template<typename InputStream>
InputStream& KernelIstreamLexer< InputStream >::_myInputStream [protected]
 

Definition at line 16 of file KernelIstreamLexer.h.

Referenced by KernelIstreamLexer< InputStream >::nextChar().


The documentation for this class was generated from the following file:
logo OpenMask

Documentation generated on Mon Nov 25 15:26:07 2002

Generated with doxygen 1.2.12 by Dimitri van Heesch ,   1997-2001