ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

tparser.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 doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.