1 #ifndef UTIL_XML_BASE_H 2 #define UTIL_XML_BASE_H 59 const std::string&
string()
const;
78 std::string
const * stringPtr_;
90 if (cursor_ == end_)
return;
93 if (cursor_ == end_) {
97 c_ = (*stringPtr_)[cursor_];
106 if (cursor_ == end_)
return;
108 if (cursor_ != end_) {
109 c_ = (*stringPtr_)[cursor_];
119 {
return (*stringPtr_); }
137 {
return (cursor_ == end_); }
Base class for classes that parse XML markup tags.
void setString(const std::string &string, int cursor=0)
Initialize string and cursor.
int cursor() const
Return the index of the current character.
File containing preprocessor macros for error handling.
void setCursor(int cursor)
Set cursor.
void next()
Advance to the next character.
Utility classes for scientific computation.
bool isEnd() const
Has the cursor reached the end of the string?
const std::string & string() const
Return the associated string.
int c() const
Return the current character.
void skip()
Skip leading white space, if any.