#include <XMLHandler.h>
Inheritance diagram for XMLHandler::
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 | |
Project * | project |
Pointer to the project. | |
Machine * | machine |
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. | |
Selection * | selection |
Pointer to the selection object. | |
GState * | state |
Current state. | |
GTransition * | transition |
Current transition. | |
GITransition * | itransition |
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< GState > | undostatelist |
List of added states (used for undo). | |
QList< GTransition > | undotranslist |
List of added transitions (used for undo). | |
GState * | oldinitialstate |
Old initial state (used for undo). | |
GState * | newinitialstate |
New initial state (used for undo). | |
GITransition * | oldinitialtrans |
Old initial transition (used for undo). | |
GITransition * | newinitialtrans |
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). |