#include <xmltokenizer.h>
Inheritance diagram for cppdom::XMLTokenizer:
Public Methods | |
XMLTokenizer (std::istream &in, XMLLocation &loc) | |
constructor. More... | |
virtual | ~XMLTokenizer () |
XMLToken & | operator * () |
dereference operator. More... | |
const XMLToken * | operator-> () |
pointer access operator. More... | |
XMLTokenizer & | operator++ () |
advances in the xml stream. More... | |
XMLTokenizer & | operator++ (int) |
advances in the xml stream. More... | |
XMLToken & | get () |
returns current token. More... | |
void | putBack (XMLToken &token) |
puts the token back into the stream. More... | |
void | putBack () |
puts the last token back into the stream. More... | |
Protected Methods | |
virtual void | getNext ()=0 |
internal: parses the next token. More... | |
Protected Attributes | |
std::istream & | mInput |
input stream. More... | |
XMLLocation & | mLocation |
location in the stream. More... | |
XMLToken | mCurToken |
current token. More... | |
std::stack< XMLToken > | mTokenStack |
stack for put_back()'ed tokens. More... |
Definition at line 115 of file xmltokenizer.h.
|
constructor.
Definition at line 126 of file xmltokenizer.cpp.
|
|
Definition at line 130 of file xmltokenizer.cpp.
00131 {} |
|
returns current token.
Definition at line 155 of file xmltokenizer.cpp. References mCurToken.
00156 { 00157 return mCurToken; 00158 } |
|
internal: parses the next token.
Implemented in cppdom::xmlstream_iterator, and cppdom::xmldtd_iterator. Referenced by operator++(). |
|
dereference operator.
Definition at line 133 of file xmltokenizer.cpp. References mCurToken.
00134 { 00135 return mCurToken; 00136 } |
|
advances in the xml stream.
Definition at line 149 of file xmltokenizer.cpp. References getNext().
00150 { 00151 getNext(); 00152 return *this; 00153 } |
|
advances in the xml stream.
Definition at line 143 of file xmltokenizer.cpp. References getNext().
00144 { 00145 getNext(); 00146 return *this; 00147 } |
|
pointer access operator.
Definition at line 138 of file xmltokenizer.cpp. References mCurToken.
00139 { 00140 return &mCurToken; 00141 } |
|
puts the last token back into the stream.
Definition at line 165 of file xmltokenizer.cpp. References mCurToken, and mTokenStack.
00166 { 00167 mTokenStack.push(mCurToken); 00168 } |
|
puts the token back into the stream.
Definition at line 160 of file xmltokenizer.cpp. References mTokenStack.
00161 { 00162 mTokenStack.push(token); 00163 } |
|
current token.
Definition at line 156 of file xmltokenizer.h. Referenced by get(), cppdom::xmlstream_iterator::getNext(), operator *(), operator->(), and putBack(). |
|
input stream.
Definition at line 150 of file xmltokenizer.h. Referenced by cppdom::xmlstream_iterator::getNext(). |
|
location in the stream.
Definition at line 153 of file xmltokenizer.h. Referenced by cppdom::xmlstream_iterator::getNext(), and cppdom::xmlstream_iterator::isNewLine(). |
|
stack for put_back()'ed tokens.
Definition at line 159 of file xmltokenizer.h. Referenced by cppdom::xmlstream_iterator::getNext(), and putBack(). |