00001 #ifndef INC_CharBuffer_hpp__
00002 #define INC_CharBuffer_hpp__
00003
00004
00005
00006
00007
00008
00009
00010
00011 #include <antlr/config.hpp>
00012
00013 #include <istream>
00014
00015 #include <antlr/InputBuffer.hpp>
00016
00017 #ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
00018 namespace antlr {
00019 #endif
00020
00035 class ANTLR_API CharBuffer : public InputBuffer {
00036 public:
00038 CharBuffer( ANTLR_USE_NAMESPACE(std)istream& input );
00040 int getChar();
00041
00042 protected:
00043
00044 ANTLR_USE_NAMESPACE(std)istream& input;
00045
00046 private:
00047
00048 CharBuffer(const CharBuffer& other);
00049 CharBuffer& operator=(const CharBuffer& other);
00050 };
00051
00052 #ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
00053 }
00054 #endif
00055
00056 #endif //INC_CharBuffer_hpp__