diff options
Diffstat (limited to '')
-rw-r--r-- | src/experimental/xmlreader.h | 76 |
1 files changed, 38 insertions, 38 deletions
diff --git a/src/experimental/xmlreader.h b/src/experimental/xmlreader.h index d4bad1e..9615cfb 100644 --- a/src/experimental/xmlreader.h +++ b/src/experimental/xmlreader.h | |||
@@ -13,52 +13,52 @@ | |||
13 | 13 | ||
14 | namespace Bu | 14 | namespace Bu |
15 | { | 15 | { |
16 | class Stream; | 16 | class Stream; |
17 | 17 | ||
18 | subExceptionDecl( XmlException ); | 18 | subExceptionDecl( XmlException ); |
19 | 19 | ||
20 | class XmlReader | 20 | class XmlReader |
21 | { | 21 | { |
22 | public: | 22 | public: |
23 | XmlReader( Stream &rInput ); | 23 | XmlReader( Stream &rInput ); |
24 | virtual ~XmlReader(); | 24 | virtual ~XmlReader(); |
25 | 25 | ||
26 | private: | 26 | private: |
27 | Stream &rInput; | 27 | Stream &rInput; |
28 | int iCurToken; | 28 | int iCurToken; |
29 | int iNextToken; | 29 | int iNextToken; |
30 | Bu::String sBuf; | 30 | Bu::String sBuf; |
31 | Bu::String sStr; | 31 | Bu::String sStr; |
32 | bool bIgnoreWS; | 32 | bool bIgnoreWS; |
33 | typedef struct StreamPos | 33 | typedef struct StreamPos |
34 | { | 34 | { |
35 | StreamPos() : iLine( 1 ), iChar( 1 ) { } | 35 | StreamPos() : iLine( 1 ), iChar( 1 ) { } |
36 | int iLine; | 36 | int iLine; |
37 | int iChar; | 37 | int iChar; |
38 | } StreamPos; | 38 | } StreamPos; |
39 | StreamPos spCurToken; | 39 | StreamPos spCurToken; |
40 | StreamPos spNextToken; | 40 | StreamPos spNextToken; |
41 | 41 | ||
42 | 42 | ||
43 | enum | 43 | enum |
44 | { | 44 | { |
45 | tokXmlDeclHead = 0x100, | 45 | tokXmlDeclHead = 0x100, |
46 | tokXmlDeclEnd, | 46 | tokXmlDeclEnd, |
47 | tokWS, | 47 | tokWS, |
48 | tokIdent, | 48 | tokIdent, |
49 | tokString | 49 | tokString |
50 | }; | 50 | }; |
51 | 51 | ||
52 | void fillBuffer(); | 52 | void fillBuffer(); |
53 | void cleanupBuffer( int iUsed ); | 53 | void cleanupBuffer( int iUsed ); |
54 | int nextToken(); | 54 | int nextToken(); |
55 | 55 | ||
56 | void stDocument(); | 56 | void stDocument(); |
57 | void stProlog(); | 57 | void stProlog(); |
58 | void stXmlDecl(); | 58 | void stXmlDecl(); |
59 | 59 | ||
60 | void error( const char *sMessage ); | 60 | void error( const char *sMessage ); |
61 | }; | 61 | }; |
62 | }; | 62 | }; |
63 | 63 | ||
64 | #endif | 64 | #endif |