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

CL_ComponentTokenizer Class Reference

#include <component_tokenizer.h>

Collaboration diagram for CL_ComponentTokenizer:

Collaboration graph
[legend]
List of all members.

Public Methods

 CL_ComponentTokenizer (const std::string &data, const std::string &filename)
 ~CL_ComponentTokenizer ()
bool is_space (char c)
bool is_operator (char c)
bool is_remark (char c, int position)
std::string get_next_token (int *offset=NULL)
std::string peek_next_token (int *offset=NULL)
void pop_to_peek ()
std::string write_error (std::string err_msg)

Private Methods

void tokenize ()

Private Attributes

std::deque<CL_Tokentokens
int peek_pos
int last_line
bool in_remark
char* data
int total_size
std::string string_data
std::string filename

Constructor & Destructor Documentation

CL_ComponentTokenizer::CL_ComponentTokenizer ( const std::string & data,
const std::string & filename )
 

CL_ComponentTokenizer::~CL_ComponentTokenizer ( )
 


Member Function Documentation

std::string CL_ComponentTokenizer::get_next_token ( int * offset = NULL )
 

bool CL_ComponentTokenizer::is_operator ( char c )
 

bool CL_ComponentTokenizer::is_remark ( char c,
int position )
 

bool CL_ComponentTokenizer::is_space ( char c )
 

std::string CL_ComponentTokenizer::peek_next_token ( int * offset = NULL )
 

void CL_ComponentTokenizer::pop_to_peek ( )
 

void CL_ComponentTokenizer::tokenize ( ) [private]
 

std::string CL_ComponentTokenizer::write_error ( std::string err_msg )
 


Member Data Documentation

char* CL_ComponentTokenizer::data [private]
 

Definition at line 45 of file component_tokenizer.h.

std::string CL_ComponentTokenizer::filename [private]
 

Definition at line 48 of file component_tokenizer.h.

bool CL_ComponentTokenizer::in_remark [private]
 

Definition at line 43 of file component_tokenizer.h.

int CL_ComponentTokenizer::last_line [private]
 

Definition at line 42 of file component_tokenizer.h.

int CL_ComponentTokenizer::peek_pos [private]
 

Definition at line 41 of file component_tokenizer.h.

std::string CL_ComponentTokenizer::string_data [private]
 

Definition at line 47 of file component_tokenizer.h.

std::deque<CL_Token> CL_ComponentTokenizer::tokens [private]
 

Definition at line 39 of file component_tokenizer.h.

int CL_ComponentTokenizer::total_size [private]
 

Definition at line 46 of file component_tokenizer.h.


The documentation for this class was generated from the following file:
Generated at Wed Apr 4 19:56:48 2001 for ClanLib by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001