Public Member Functions | Private Attributes

ctkLDAPExpr::ParseState Class Reference

Contains the current parser position and parsing utility methods. More...

List of all members.

Public Member Functions

void error (const QString &m) throw (ctkInvalidSyntaxException)
 Throw InvalidSyntaxException exception.
const QString getAttributeName ()
 Get string until special chars. Move m_pos.
const QString getAttributeValue ()
 Get string and convert * to WILDCARD.
 ParseState (const QString &str) throw (ctkInvalidSyntaxException)
QChar peek ()
bool prefix (const QString &pre)
 Move m_pos to remove the prefix pre.
const QString rest ()
 return string from m_pos until the end
void skip (int n)
 Increment m_pos by n.
void skipWhite ()
 Move m_pos until there's no spaces.

Private Attributes

int m_pos
QString m_str

Detailed Description

Contains the current parser position and parsing utility methods.

Definition at line 128 of file ctkLDAPExpr.h.


Constructor & Destructor Documentation

ctkLDAPExpr::ParseState::ParseState ( const QString &  str  )  throw (ctkInvalidSyntaxException)

Definition at line 396 of file ctkLDAPExpr.cpp.


Member Function Documentation

void ctkLDAPExpr::ParseState::error ( const QString &  m  )  throw (ctkInvalidSyntaxException)

Throw InvalidSyntaxException exception.

Definition at line 487 of file ctkLDAPExpr.cpp.

const QString ctkLDAPExpr::ParseState::getAttributeName (  ) 

Get string until special chars. Move m_pos.

Definition at line 438 of file ctkLDAPExpr.cpp.

const QString ctkLDAPExpr::ParseState::getAttributeValue (  ) 

Get string and convert * to WILDCARD.

Definition at line 458 of file ctkLDAPExpr.cpp.

QChar ctkLDAPExpr::ParseState::peek (  ) 

Peek a char at m_pos

Note:
If index out of bounds, throw exception

Definition at line 412 of file ctkLDAPExpr.cpp.

bool ctkLDAPExpr::ParseState::prefix ( const QString &  pre  ) 

Move m_pos to remove the prefix pre.

Definition at line 404 of file ctkLDAPExpr.cpp.

const QString ctkLDAPExpr::ParseState::rest (  ) 

return string from m_pos until the end

Definition at line 426 of file ctkLDAPExpr.cpp.

void ctkLDAPExpr::ParseState::skip ( int  n  ) 

Increment m_pos by n.

Definition at line 421 of file ctkLDAPExpr.cpp.

void ctkLDAPExpr::ParseState::skipWhite (  ) 

Move m_pos until there's no spaces.

Definition at line 431 of file ctkLDAPExpr.cpp.


Member Data Documentation

Definition at line 129 of file ctkLDAPExpr.h.

QString ctkLDAPExpr::ParseState::m_str [private]

Definition at line 130 of file ctkLDAPExpr.h.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines