HTMLTokenizer Class Reference
[HTML Tokenizing Utils]

#include <HTMLTokenizer.h>

Collaboration diagram for HTMLTokenizer:

Collaboration graph
[legend]

List of all members.

Public Member Functions

HTMLToken GetNextToken ()
bool HasNextToken () const
 HTMLTokenizer (URLInputStream *input)
 HTMLTokenizer (const std::string &htmlCode)
virtual ~HTMLTokenizer ()

Friends

class HTMLTokenizerTester


Detailed Description

The HTMLTokenizer class is used to parse the html language into tokens.

Definition at line 19 of file HTMLTokenizer.h.


Constructor & Destructor Documentation

HTMLTokenizer::HTMLTokenizer ( const std::string &  htmlCode  ) 

Initialize the HTMLTokenizer with an html string that you have already downloaded.

Definition at line 5 of file HTMLTokenizer.cpp.

HTMLTokenizer::HTMLTokenizer ( URLInputStream input  ) 

Initialize the HTMLTokenizer with an InputStream that the HTMLTokenizer will then retrieve all of the HTML code from. When the constructor is finished, the InputStream that you pass in should be done and should be closed.

Definition at line 10 of file HTMLTokenizer.cpp.

References URLInputStream::IsDone(), URLInputStream::IsOpen(), and URLInputStream::Read().

HTMLTokenizer::~HTMLTokenizer (  )  [virtual]

Destructor that cleans up any memory needing to be deleted by this tokenizer.

Definition at line 19 of file HTMLTokenizer.cpp.


Member Function Documentation

HTMLToken HTMLTokenizer::GetNextToken (  ) 

Get the next HTMLToken in the html string.

Definition at line 23 of file HTMLTokenizer.cpp.

References COMMENT, END, and TEXT.

bool HTMLTokenizer::HasNextToken (  )  const

Return whether the tokenizer has another token to return.

Definition at line 44 of file HTMLTokenizer.cpp.


Friends And Related Function Documentation

friend class HTMLTokenizerTester [friend]

Definition at line 22 of file HTMLTokenizer.h.


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

Generated on Wed Jul 7 16:30:29 2010 for CS240Utils by  doxygen 1.5.8