Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
|
#include <Token.h>
Public Types | |
enum class | TokenType { START_ELEMENT , END_ELEMENT , START_ATTRIBUTE , END_ATTRIBUTE , CHARACTER } |
Public Member Functions | |
Token (std::string, TokenType) | |
const std::string & | getData () const & |
std::string && | getData () && |
TokenType | getType () const |
bool | operator== (const Token &other) const |
Friends | |
std::ostream & | operator<< (std::ostream &os, const Token &token) |
Represents part of parsed XML. Can be start of tag, end of tag, tag attribute or array of characters.
|
strong |
sax::Token::Token | ( | std::string | tokenData, |
Token::TokenType | tokenType | ||
) |
std::string && sax::Token::getData | ( | ) | && |
const std::string & sax::Token::getData | ( | ) | const & |
Token::TokenType sax::Token::getType | ( | ) | const |
bool sax::Token::operator== | ( | const Token & | other | ) | const |
|
friend |