#include <xmltokenizer.h>
Public Methods | |
| XMLToken () | |
| XMLToken (char ch) | |
| XMLToken (const std::string &str) | |
| bool | isLiteral () const |
| returns if token is a literal. More... | |
| bool | isEndOfStream () const |
| returns if it is and end of xml stream token. More... | |
| char | getLiteral () const |
| returns literal char. More... | |
| const std::string & | getGeneric () const |
| returns generic string. More... | |
| bool | operator== (char ch) const |
| compare operator for literals. More... | |
| bool | operator!= (char ch) const |
| compare operator for literals. More... | |
| bool | operator== (const std::string &str) const |
| compare operator for a generic string. More... | |
| bool | operator!= (const std::string &str) const |
| compare operator for a generic string. More... | |
| XMLToken & | operator= (const std::string &str) |
| set generic string. More... | |
| XMLToken & | operator= (char ch) |
| set literal char. More... | |
Protected Attributes | |
| bool | mIsLiteral |
| indicates if token is a literal char. More... | |
| char | mLiteral |
| literal. More... | |
| std::string | mGeneric |
| pointer to string. More... | |
Friends | |
| class | xmlstream_iterator |
Definition at line 61 of file xmltokenizer.h.
|
|
Definition at line 54 of file xmltokenizer.cpp.
00055 : mIsLiteral(true) 00056 , mLiteral(0) 00057 {} |
|
|
Definition at line 59 of file xmltokenizer.cpp.
00060 : mIsLiteral(true) 00061 , mLiteral(ch) 00062 {} |
|
|
Definition at line 64 of file xmltokenizer.cpp.
00065 : mIsLiteral(false) 00066 , mLiteral(0) 00067 , mGeneric(str) 00068 {} |
|
|
returns generic string.
Definition at line 85 of file xmltokenizer.cpp. References mGeneric. Referenced by cppdom::XMLParser::parseAttributes(), cppdom::XMLParser::parseHeader(), and cppdom::XMLParser::parseNode().
00086 {
00087 return mGeneric;
00088 }
|
|
|
returns literal char.
Definition at line 80 of file xmltokenizer.cpp. References mLiteral. Referenced by cppdom::XMLParser::parseHeader(), and cppdom::XMLParser::parseNode().
00081 {
00082 return mLiteral;
00083 }
|
|
|
returns if it is and end of xml stream token.
Definition at line 75 of file xmltokenizer.cpp. References mIsLiteral, and mLiteral. Referenced by cppdom::XMLParser::parseNode().
00076 {
00077 return mIsLiteral && mLiteral == char(EOF);
00078 }
|
|
|
returns if token is a literal.
Definition at line 70 of file xmltokenizer.cpp. References mIsLiteral. Referenced by operator==(), cppdom::XMLParser::parseAttributes(), cppdom::XMLParser::parseHeader(), and cppdom::XMLParser::parseNode().
00071 {
00072 return mIsLiteral;
00073 }
|
|
|
compare operator for a generic string.
Definition at line 105 of file xmltokenizer.cpp. References operator==().
00106 {
00107 return ! operator==(str);
00108 }
|
|
|
compare operator for literals.
Definition at line 95 of file xmltokenizer.cpp. References operator==().
00096 {
00097 return ! operator==(ch);
00098 }
|
|
|
set literal char.
Definition at line 117 of file xmltokenizer.cpp. References mIsLiteral, and mLiteral.
00118 {
00119 mLiteral = ch;
00120 mIsLiteral = true;
00121 return *this;
00122 }
|
|
|
set generic string.
Definition at line 110 of file xmltokenizer.cpp. References mGeneric, and mIsLiteral.
00111 {
00112 mGeneric = str;
00113 mIsLiteral = false;
00114 return *this;
00115 }
|
|
|
compare operator for a generic string.
Definition at line 100 of file xmltokenizer.cpp. References isLiteral(), and mGeneric.
|
|
|
compare operator for literals.
Definition at line 90 of file xmltokenizer.cpp. References isLiteral(), and mLiteral. Referenced by operator!=().
|
|
|
Definition at line 63 of file xmltokenizer.h. |
|
|
pointer to string.
Definition at line 109 of file xmltokenizer.h. Referenced by getGeneric(), operator=(), and operator==(). |
|
|
indicates if token is a literal char.
Definition at line 103 of file xmltokenizer.h. Referenced by isEndOfStream(), isLiteral(), and operator=(). |
|
|
literal.
Definition at line 106 of file xmltokenizer.h. Referenced by getLiteral(), isEndOfStream(), operator=(), and operator==(). |
1.2.15