XML token in a XML file. More...
#include <xml_token.h>
Public Types | |
typedef std::pair< std::string, std::string > | Attribute |
enum | TokenType { NULL_TOKEN = 0 , ELEMENT_TOKEN = 1 , TEXT_TOKEN = 3 , CDATA_SECTION_TOKEN = 4 , ENTITY_REFERENCE_TOKEN = 5 , ENTITY_TOKEN = 6 , PROCESSING_INSTRUCTION_TOKEN = 7 , COMMENT_TOKEN = 8 , DOCUMENT_TYPE_TOKEN = 10 , NOTATION_TOKEN = 12 } |
enum | TokenVariant { BEGIN = 1 , END = 2 , SINGLE = 3 } |
Public Member Functions | |
XMLToken () | |
Public Attributes | |
std::vector< Attribute > | attributes |
All the attributes attached to the token. | |
std::string | name |
The name of the token. | |
TokenType | type |
The token type. | |
std::string | value |
Returns the value of the token. | |
TokenVariant | variant |
The token variant. | |
XML token in a XML file.
typedef std::pair<std::string, std::string> clan::XMLToken::Attribute |
|
inline |
std::vector<Attribute> clan::XMLToken::attributes |
All the attributes attached to the token.
std::string clan::XMLToken::name |
The name of the token.
TokenType clan::XMLToken::type |
The token type.
std::string clan::XMLToken::value |
Returns the value of the token.
TokenVariant clan::XMLToken::variant |
The token variant.