Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygentparser.h
Go to the documentation of this file.
00001 // A TParser is a class for parsing input and formatting it (presumabyl for 00002 // display on the screen). All parsers are derived from the TParser class, 00003 // in order to facilitate extending telnet to include other kinds of 00004 // output. Currently, only one parser is implemented, the ANSI parser. 00005 // A TParser includes: 00006 // - A ParseBuffer function, which takes as parameters start and end 00007 // pointers. It returns a pointer to the last character parsed plus 1. 00008 // The start pointer is the beginning of the buffer, and the end 00009 // pointer is one character after the end of the buffer. 00010 // - An Init() function, which will re-initialize the parser when 00011 // necessary. 00012 00013 #pragma once 00014 00015 #include "tconsole.h" 00016 #include "keytrans.h" 00017 #include "tscroll.h" 00018 #include "tnetwork.h" 00019 #include "tcharmap.h" 00020 00021 class TParser { 00022 public: 00023 TParser(TConsole &RefConsole, KeyTranslator &RefKeyTrans, 00024 TScroller &RefScroller, TNetwork &RefNetwork, TCharmap &RefCharmap) : 00025 Console(RefConsole), KeyTrans(RefKeyTrans), Scroller (RefScroller), 00026 Network(RefNetwork), Charmap(RefCharmap) {} 00027 virtual ~TParser() {} 00028 00029 /* TParser& operator= (const TParser &p) { 00030 Console = p.Console; 00031 KeyTrans = p.KeyTrans; 00032 Scroller = p.Scroller; 00033 Network = p.Network; 00034 return *this; 00035 }*/ 00036 00037 virtual char *ParseBuffer(char *pszBuffer, char *pszBufferEnd) = 0; 00038 virtual void Init() = 0; 00039 00040 protected: 00041 TConsole &Console; 00042 KeyTranslator &KeyTrans; 00043 TScroller &Scroller; 00044 TNetwork &Network; 00045 TCharmap &Charmap; 00046 }; Generated on Sat May 26 2012 04:16:15 for ReactOS by
1.7.6.1
|