ReactOS
0.4.16-dev-1025-gd3456f5
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Functions
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
Variables
_
c
d
e
f
g
h
i
l
m
n
o
p
s
t
u
x
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
x
Enumerations
_
a
b
c
d
f
i
l
m
o
p
s
t
w
x
Enumerator
a
b
c
d
e
f
g
h
i
m
n
o
p
r
s
t
u
v
w
x
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Related Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
x
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Examples
tparser.h
Go to the documentation of this file.
1
// A TParser is a class for parsing input and formatting it (presumabyl for
2
// display on the screen). All parsers are derived from the TParser class,
3
// in order to facilitate extending telnet to include other kinds of
4
// output. Currently, only one parser is implemented, the ANSI parser.
5
// A TParser includes:
6
// - A ParseBuffer function, which takes as parameters start and end
7
// pointers. It returns a pointer to the last character parsed plus 1.
8
// The start pointer is the beginning of the buffer, and the end
9
// pointer is one character after the end of the buffer.
10
// - An Init() function, which will re-initialize the parser when
11
// necessary.
12
13
#pragma once
14
15
#include "
tconsole.h
"
16
#include "
keytrans.h
"
17
#include "
tscroll.h
"
18
//#include "tnetwork.h"
19
#include "
tcharmap.h
"
20
21
class
TParser
{
22
public
:
23
TParser
(
TConsole
&RefConsole,
KeyTranslator
&RefKeyTrans,
24
TScroller
&RefScroller,
TNetwork
&RefNetwork,
TCharmap
&RefCharmap) :
25
Console
(RefConsole),
KeyTrans
(RefKeyTrans),
Scroller
(RefScroller),
26
Network
(RefNetwork),
Charmap
(RefCharmap) {}
27
virtual
~TParser
() {}
28
29
/* TParser& operator= (const TParser &p) {
30
Console = p.Console;
31
KeyTrans = p.KeyTrans;
32
Scroller = p.Scroller;
33
Network = p.Network;
34
return *this;
35
}*/
36
37
virtual
char
*
ParseBuffer
(
char
*pszBuffer,
char
*pszBufferEnd) = 0;
38
virtual
void
Init
() = 0;
39
40
protected
:
41
TConsole
&
Console
;
42
KeyTranslator
&
KeyTrans
;
43
TScroller
&
Scroller
;
44
TNetwork
&
Network
;
45
TCharmap
&
Charmap
;
46
};
KeyTranslator
Definition:
keytrans.h:51
TCharmap
Definition:
tcharmap.h:6
TConsole
Definition:
tconsole.h:60
TNetwork
Definition:
tnetwork.h:12
TParser
Definition:
tparser.h:21
TParser::Init
virtual void Init()=0
TParser::TParser
TParser(TConsole &RefConsole, KeyTranslator &RefKeyTrans, TScroller &RefScroller, TNetwork &RefNetwork, TCharmap &RefCharmap)
Definition:
tparser.h:23
TParser::KeyTrans
KeyTranslator & KeyTrans
Definition:
tparser.h:42
TParser::~TParser
virtual ~TParser()
Definition:
tparser.h:27
TParser::ParseBuffer
virtual char * ParseBuffer(char *pszBuffer, char *pszBufferEnd)=0
TParser::Console
TConsole & Console
Definition:
tparser.h:41
TParser::Scroller
TScroller & Scroller
Definition:
tparser.h:43
TParser::Charmap
TCharmap & Charmap
Definition:
tparser.h:45
TParser::Network
TNetwork & Network
Definition:
tparser.h:44
TScroller
Definition:
tscroll.h:8
keytrans.h
tcharmap.h
tconsole.h
tscroll.h
base
applications
network
telnet
src
tparser.h
Generated on Tue Apr 22 2025 06:02:44 for ReactOS by
1.9.6