#include <HTMLToken.h>

Public Member Functions | |
| bool | AttributeExists (const string &attribute) |
| string | GetAttribute (const string &attribute) |
| HTMLTokenType | GetType () const |
| string | GetValue () const |
| HTMLToken (const HTMLToken &toCopy) | |
| HTMLToken (const string &tokenValue, HTMLTokenType tokenType) | |
| void | SetAttribute (const string &attribute, const string &value) |
| virtual | ~HTMLToken () |
Friends | |
| class | HTMLTokenizerTester |
Definition at line 50 of file HTMLToken.h.
| HTMLToken::HTMLToken | ( | const string & | tokenValue, | |
| HTMLTokenType | tokenType | |||
| ) |
Standard Constructor that initializes member variables.
Definition at line 35 of file HTMLToken.cpp.
| HTMLToken::HTMLToken | ( | const HTMLToken & | toCopy | ) |
Copy Constructor that performs a deep copy of all member values.
Definition at line 40 of file HTMLToken.cpp.
References attributes, type, and value.
| HTMLToken::~HTMLToken | ( | ) | [virtual] |
Standard Destructor that cleans up any memory used by this class.
Definition at line 46 of file HTMLToken.cpp.
| bool HTMLToken::AttributeExists | ( | const string & | attribute | ) |
Get whether the provided attribute was present in the originally parsed token or not.
Definition at line 60 of file HTMLToken.cpp.
| string HTMLToken::GetAttribute | ( | const string & | attribute | ) |
Get the associated value for the attribute of this token. If the given attribute does not exist in the token, or the token is a WORD, then an empty string will be returned.
Definition at line 64 of file HTMLToken.cpp.
| HTMLTokenType HTMLToken::GetType | ( | ) | const |
Get the type of this token, whether it be a TAG or a WORD.
Definition at line 55 of file HTMLToken.cpp.
| string HTMLToken::GetValue | ( | ) | const |
Return the value of the token, whether that be the first part of the HTML tag or it is the actual word value.
Definition at line 50 of file HTMLToken.cpp.
| void HTMLToken::SetAttribute | ( | const string & | attribute, | |
| const string & | value | |||
| ) |
Either insert the provided attribute/value pair into the list of attributes for this token, or update the given attribute's value. Note: If the HTMLTokenType is WORD, this function will not save the attribute/value pair to the list of attributes.
Definition at line 76 of file HTMLToken.cpp.
friend class HTMLTokenizerTester [friend] |
Definition at line 53 of file HTMLToken.h.
1.5.8