ANTLR Support Libraries 2.7.1+
 All Classes Namespaces Files Functions Variables Typedefs Friends Defines
antlr/CharBuffer.hpp
Go to the documentation of this file.
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: //depot/code/org.antlr/release/antlr-2.7.7/lib/cpp/antlr/CharBuffer.hpp#2 $
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    // character source
00044    ANTLR_USE_NAMESPACE(std)istream& input;
00045 
00046 private:
00047    // NOTE: Unimplemented
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__