#include <html_token.h>

Public Types

enum  Type {
  type_null, type_dtd, type_tag_begin, type_tag_end,
  type_tag_single, type_text, type_script_tag, type_style_tag,
  type_comment, type_invalid
}
 

Public Member Functions

 HTMLToken ()
 
 HTMLToken (Type type)
 
 HTMLToken (Type type, const std::string &name)
 
 HTMLToken (Type type, const std::string &name, const std::string &value)
 
 HTMLToken (Type type, const std::string &name, const std::string &value, const std::vector< HTMLAttribute > &attributes)
 
std::string get_attribute (const std::string &name) const
 
bool has_attribute (const std::string &name) const
 

Public Attributes

std::vector< HTMLAttributeattributes
 
std::string name
 
Type type
 
std::string value
 

Member Enumeration Documentation

Enumerator
type_null 
type_dtd 
type_tag_begin 
type_tag_end 
type_tag_single 
type_text 
type_script_tag 
type_style_tag 
type_comment 
type_invalid 

Constructor & Destructor Documentation

clan::HTMLToken::HTMLToken ( )
inline
clan::HTMLToken::HTMLToken ( Type  type)
inline
clan::HTMLToken::HTMLToken ( Type  type,
const std::string &  name 
)
inline
clan::HTMLToken::HTMLToken ( Type  type,
const std::string &  name,
const std::string &  value 
)
inline
clan::HTMLToken::HTMLToken ( Type  type,
const std::string &  name,
const std::string &  value,
const std::vector< HTMLAttribute > &  attributes 
)
inline

Member Function Documentation

std::string clan::HTMLToken::get_attribute ( const std::string &  name) const
inline
bool clan::HTMLToken::has_attribute ( const std::string &  name) const
inline

Member Data Documentation

std::vector<HTMLAttribute> clan::HTMLToken::attributes
std::string clan::HTMLToken::name
Type clan::HTMLToken::type
std::string clan::HTMLToken::value

The documentation for this class was generated from the following file: