Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

Lexer Class Reference

puts every tag into a new line. More...

#include <lexer.h>

List of all members.

Public Methods

 Lexer (File in, File out, std::string current_dir="")
void lex ()
 lexes the file. More...


Private Methods

std::string read_line ()
 reads the line. More...

std::string::size_type find_tag (std::string line, std::string::size_type startpos)
 returns the startpos of the next tag. More...

std::string::size_type find_end_of_tag (std::string line, std::string::size_type startpos)
 returns the endpos of the next tag. More...

std::string get_tag (std::string line, std::string::size_type startpos)
 extracts all tags from the line. More...


Private Attributes

File in
File out
bool eof_reached
int line_number
int cursor_pos
std::string current_dir


Detailed Description

puts every tag into a new line.

lexes a html file


Constructor & Destructor Documentation

Lexer::Lexer File    in,
File    out,
std::string    current_dir = ""
 


Member Function Documentation

std::string::size_type Lexer::find_end_of_tag std::string    line,
std::string::size_type    startpos
[private]
 

returns the endpos of the next tag.

std::string::size_type Lexer::find_tag std::string    line,
std::string::size_type    startpos
[private]
 

returns the startpos of the next tag.

std::string Lexer::get_tag std::string    line,
std::string::size_type    startpos
[private]
 

extracts all tags from the line.

void Lexer::lex  
 

lexes the file.

std::string Lexer::read_line   [private]
 

reads the line.


Member Data Documentation

std::string Lexer::current_dir [private]
 

int Lexer::cursor_pos [private]
 

bool Lexer::eof_reached [private]
 

File Lexer::in [private]
 

int Lexer::line_number [private]
 

File Lexer::out [private]
 


The documentation for this class was generated from the following files:
Generated on Tue Nov 20 02:19:54 2001 for Leo<HTML> by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001