toSQLParse::statement Class Reference

#include <tosqlparse.h>

List of all members.

Public Types

enum  type {
  Block, Statement, List, Keyword,
  Token, Raw
}

Public Member Functions

 statement (type ntype=Token, const QString &token=QString::null, int cline=-1)
std::list< statement > & subTokens ()
 statement (const statement &)
const statementoperator= (const statement &)
bool operator== (const statement &) const
bool operator!= (const statement &stat) const
 ~statement ()

Public Attributes

enum toSQLParse::statement::type Type
QString Comment
QString String
int Line


Detailed Description

Structure the statement is parsed into.

Member Enumeration Documentation

Type of this token.

Enumerator:
Block  Start of block.
Statement  Start of statement.
List  Sub list
Keyword  Parameter of statement.
Token  Another token of whatever it is detected in.
Raw  Unparsed data Type of token.


Constructor & Destructor Documentation

toSQLParse::statement::statement ( type  ntype = Token,
const QString &  token = QString::null,
int  cline = -1 
)

Create statement

toSQLParse::statement::statement ( const statement stat  ) 

Copy constructor

References Comment, Line, String, SubTokens, and Type.

toSQLParse::statement::~statement (  ) 

Destroy statement


Member Function Documentation

std::list< toSQLParse::statement > & toSQLParse::statement::subTokens ( void   ) 

Allocate subtokens if not available and return reference to subtokens

Referenced by toSQLParse::indentStatement(), and toSQLParse::parse().

const toSQLParse::statement & toSQLParse::statement::operator= ( const statement stat  ) 

Copy operator

References Comment, Line, String, SubTokens, and Type.

bool toSQLParse::statement::operator== ( const statement stat  )  const

Equality operator. Does not include the line for comparison.

References Comment, String, SubTokens, and Type.

bool toSQLParse::statement::operator!= ( const statement stat  )  const [inline]

Non rquality operator. Does not include the line for comparison.


Member Data Documentation

Was there a comment attached to this token

Referenced by toSQLParse::indentStatement(), operator=(), operator==(), and statement().

The actual token.

Referenced by operator=(), operator==(), and statement().

The original line of the token (0 is first line)

Referenced by operator=(), and statement().


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