#include "CTBxmlLexer.hxx"
Collaboration diagram for CTBxmlLexerToken:
Public Types | |
enum | type { invalid = -1, fail, eof, tagopen, etagopen, tagclose, etagclose, comment, defopen, piopen, piclose, charref, entref, equal, squote, dquote, name, white, data } |
Public Methods | |
CTBxmlLexerToken () | |
int | Type () const |
void | Type (int i_type) |
const CTBstring & | Text () const |
void | Clear () |
void | ToStream (ostream &os) const |
void | Dump (int i_indent=0, ostream &os=cout, const char *p_text=0) const |
bool | operator! () const |
operator const char * () const | |
operator CTBstring () const | |
CTBxmlLexerToken & | operator= (const char *c_text) |
CTBxmlLexerToken & | operator+= (char c) |
CTBxmlLexerToken & | operator+= (const char *c_text) |
Private Attributes | |
int | mi_type |
CTBstring | m_text |
Related Functions | |
(Note that these are not member functions.) | |
ostream & | operator<< (ostream &os, const CTBxmlLexerToken &obj) |
Definition at line 59 of file CTBxmlLexer.hxx.
|
Lexer token type.
Definition at line 61 of file CTBxmlLexer.hxx. |
|
Default constructor.
Definition at line 112 of file CTBxmlLexer.icc. |
|
Returns token type.
Definition at line 119 of file CTBxmlLexer.icc. Referenced by CTBxmlLexer::Get(), CTBxmlLexer::GetEntity(), CTBxmlIStream::GetLexerToken(), CTBxmlLexer::GetName(), CTBxmlLexer::GetWhite(), and ToStream().
|
|
set token type.
Definition at line 127 of file CTBxmlLexer.icc. |
|
Returns token text.
Definition at line 136 of file CTBxmlLexer.icc. Referenced by CTBxmlIStream::GetDataFromLexer(), CTBxmlIStream::GetLexerToken(), and CTBxmlIStream::GetTagFromLexer().
|
|
Reset token, set state invalid and clear text.
Definition at line 144 of file CTBxmlLexer.icc. Referenced by CTBxmlLexer::Get().
|
|
ostream insertion.
Definition at line 399 of file CTBxmlLexer.cxx. Referenced by operator<<().
|
|
Dump.
Definition at line 434 of file CTBxmlLexer.cxx. |
|
Negation operator, returns
Definition at line 154 of file CTBxmlLexer.icc. |
|
char* conversion, returns text associated with token or 0 if token invalid.
Definition at line 162 of file CTBxmlLexer.icc. |
|
CTBstring conversion, returns text associated with token.
Definition at line 170 of file CTBxmlLexer.icc. |
|
Set text value associated with token.
Definition at line 178 of file CTBxmlLexer.icc. |
|
Append character to text value associated with token.
Definition at line 187 of file CTBxmlLexer.icc. |
|
Append character string to text value associated with token.
Definition at line 196 of file CTBxmlLexer.icc. |
|
ostream insertion operator.
Definition at line 208 of file CTBxmlLexer.icc. |
|
token type.
Definition at line 107 of file CTBxmlLexer.hxx. |
|
raw text associated with token.
Definition at line 108 of file CTBxmlLexer.hxx. |