kalzium/libscience
Public Member Functions |
Protected Member Functions |
Protected Attributes |
Static Protected Attributes |
List of all members
Parser Class Reference
#include <parser.h>
Inheritance diagram for Parser:
Public Member Functions | |
Parser () | |
Parser (const QString &_str) | |
virtual | ~Parser () |
float | floatVal () const |
int | intVal () const |
int | nextChar () const |
int | nextToken () const |
void | start (const QString &_str) |
Protected Member Functions | |
int | getNextChar () |
virtual int | getNextToken () |
int | skipWhitespace () |
Protected Attributes | |
double | m_floatVal |
int | m_intVal |
int | m_nextToken |
Static Protected Attributes | |
static const int | FLOAT_TOKEN = 258 |
static const int | INT_TOKEN = 257 |
Detailed Description
This is a general purpose parser originally written by Inge Wallin.
It is intended to be subclassed; see MoleculeParser.
Constructor & Destructor Documentation
Parser::Parser | ( | ) |
Constructor.
Definition at line 21 of file parser.cpp.
|
explicit |
|
virtual |
Destructor.
Definition at line 33 of file parser.cpp.
Member Function Documentation
|
protected |
Make the next character the current one.
Definition at line 139 of file parser.cpp.
|
protectedvirtual |
|
inline |
|
inline |
|
inline |
|
protected |
Make the next non-space character the current one.
Definition at line 168 of file parser.cpp.
void Parser::start | ( | const QString & | _str | ) |
Start a new parse.
Definition at line 39 of file parser.cpp.
Member Data Documentation
|
staticprotected |
|
staticprotected |
|
protected |
|
protected |
|
protected |
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:11:56 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:11:56 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.