toSQLParse::editorTokenizer Class Reference

#include <tosqlparse.h>

Inheritance diagram for toSQLParse::editorTokenizer:

Inheritance graph
[legend]
Collaboration diagram for toSQLParse::editorTokenizer:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 editorTokenizer (SqlEditorWidget *editor, int offset=0, int line=0)
virtual QString getToken (bool forward=true, bool comment=false)
virtual QString remaining (bool eol)


Detailed Description

Tokenizer class which gets tokens from an editor.

Constructor & Destructor Documentation

toSQLParse::editorTokenizer::editorTokenizer ( SqlEditorWidget editor,
int  offset = 0,
int  line = 0 
)

Create a tokenizer which takes its input from an editor.

Parameters:
editor The editor to read from. Observe that if this is a syntax highlighted editor the syntax analyzer is used that is used for the editor.


Member Function Documentation

QString toSQLParse::editorTokenizer::getToken ( bool  forward = true,
bool  comment = false 
) [virtual]

Get a token from the string.

Parameters:
forward Go forward or backwards to get next token.
comment Include comments as tokens.

Implements toSQLParse::tokenizer.

References toSQLParse::stringTokenizer::getToken(), toSQLParse::tokenizer::line(), toSQLParse::tokenizer::Line, toSQLParse::tokenizer::offset(), toSQLParse::tokenizer::Offset, and QUOTE_CHARACTER.

QString toSQLParse::editorTokenizer::remaining ( bool  eol  )  [virtual]

Get the data remaining after the current position.

Parameters:
eol If true end of line, otherwise end of tokenizer.

Implements toSQLParse::tokenizer.

References toSQLParse::tokenizer::line(), toSQLParse::tokenizer::Line, toSQLParse::tokenizer::offset(), and toSQLParse::tokenizer::Offset.


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

Generated on Sat Jul 26 09:05:57 2008 for Sqliteman by  doxygen 1.5.5