Home Hierarchy Members Alphabetical Related Pages

vrml97fastlexer.h

Go to the documentation of this file.
00001 #ifndef XDKWRL_VRML97FASTLEXER_H
00002 #define XDKWRL_VRML97FASTLEXER_H
00003 
00004 #include <xdkwrl/parser/vrml97lexer.hpp>
00005 
00006 class vrml97parser;
00007 
00008 class vrml97fastlexer : public vrml97lexer
00009 {
00010 public:
00011   vrml97fastlexer(std::istream& );
00012   virtual ANTLR_USE_NAMESPACE(antlr)RefToken nextToken();
00013   virtual int getLine() const;
00014   virtual int getColumn() const;
00015   inline void setParserPointer(vrml97parser* parser);
00016 protected:
00017   void swallowOneChar();
00018   void spitOneChar();
00019 private:
00020   std::istream& istm_;
00021   char          prevChar_;
00022   char          c_;
00023   int           col_;
00024   int           line_;
00025   bool          cWasSpit_;
00026   vrml97parser* parser_;
00027 };
00028 inline void
00029 vrml97fastlexer::setParserPointer(vrml97parser* parser)
00030 {
00031   parser_ = parser;
00032 }
00033 
00034 #endif // XDKWRL_VRML97FASTLEXER_H

Generated on 24 Feb 2005 with doxygen version 1.3.9.1. Valid HTML 4.0! Valid CSS!