00001 #ifndef INC_CharBuffer_hpp__ 00002 #define INC_CharBuffer_hpp__ 00003 00004 /* ANTLR Translator Generator 00005 * Project led by Terence Parr at http://www.jGuru.com 00006 * Software rights: http://www.antlr.org/license.html 00007 * 00008 * $Id: CharBuffer.hpp,v 1.1 2004/10/08 16:27:34 dfisher Exp $ 00009 */ 00010 00011 #include <istream> 00012 00013 #include <antlr/config.hpp> 00014 #include <antlr/InputBuffer.hpp> 00015 00016 #ifdef ANTLR_CXX_SUPPORTS_NAMESPACE 00017 namespace antlr { 00018 #endif 00019 00034 class ANTLR_API CharBuffer : public InputBuffer { 00035 private: 00036 // character source 00037 ANTLR_USE_NAMESPACE(std)istream& input; 00038 00039 public: 00041 CharBuffer(ANTLR_USE_NAMESPACE(std)istream& input_); 00043 int getChar(); 00044 private: 00045 // NOTE: Unimplemented 00046 CharBuffer(const CharBuffer& other); 00047 CharBuffer& operator=(const CharBuffer& other); 00048 }; 00049 00050 #ifdef ANTLR_CXX_SUPPORTS_NAMESPACE 00051 } 00052 #endif 00053 00054 #endif //INC_CharBuffer_hpp__