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

XMLHandler Class Reference

XML parser that parses .fsm files. More...

#include <XMLHandler.h>

Inheritance diagram for XMLHandler::

List of all members.

Public Methods

 XMLHandler (Project *newProject, Selection *sel=NULL, bool keepquiet=TRUE, bool createnewmachine=TRUE)
 Constructor.

bool startDocument ()
 Starts a new document.

bool startElement (const QString &namespaceURI, const QString &localName, const QString &qName, const QXmlAttributes &atts)
 Called when a start element was parsed.

bool endElement (const QString &, const QString &, const QString &)
 Called when a closing tag was parsed.

bool characters (const QString &ch)
 Deprecated.


Private Attributes

Projectproject
 Pointer to the project.

Machinemachine
 Pointer to the machine.

bool quiet
 If TRUE, no error messages are print (or dialog boxes opened) during parsing.

bool create_new_machine
 If TRUE a new machine is created, otherwise an existing one is used.

Selectionselection
 Pointer to the selection object.

GStatestate
 Current state.

GTransitiontransition
 Current transition.

GITransitionitransition
 Current initial transition.

int saveinitialstate
 Code of the initial state (that has to be saved during parsing).

QString inames
 Input names.

QString onames
 Output names.

QString monames
 Moore output names.

QString sname
 State name.

bool inamescont
 deprecated.

bool onamescont
 deprecated.

bool monamescont
 deprecated.

bool snamecont
 deprecated.

bool hascode
 TRUE is the current state has a code.

int ttype
 Transition tyoe.

QString iinfo
 Input info.

QString oinfo
 Output info.

bool fromcont
 deprecated.

bool tocont
 deprecated.

bool tincont
 deprecated.

bool toutcont
 deprecated.

bool hasfrom
 TRUE if the transition has a starting state.

bool hasto
 TRUE if the transition has an end state.

QString from
 Starting state.

QString to
 End state.

QValueList< int > rstatelist
 List of removed states.

QMap< int, int > codemap
 Mapping of old state codes to new state codes.

bool addstate
 If TRUE the current state will be added to the machine.

bool hasinitialstate
 TRUE if there is ann initial state.

QList< GStateundostatelist
 List of added states (used for undo).

QList< GTransitionundotranslist
 List of added transitions (used for undo).

GStateoldinitialstate
 Old initial state (used for undo).

GStatenewinitialstate
 New initial state (used for undo).

GITransitionoldinitialtrans
 Old initial transition (used for undo).

GITransitionnewinitialtrans
 New initial transition (used for undo).

int oldnumbits
 Old number of bits (used for undo).

int oldnumin
 Old number of input bits (used for undo).

int oldnumout
 Old number of output bits (used for undo).


Detailed Description

XML parser that parses .fsm files.


The documentation for this class was generated from the following files:
Generated at Fri Apr 11 22:37:18 2003 for Qfsm by doxygen1.2.9.1 written by Dimitri van Heesch, © 1997-2001