27#ifndef ACTIONSTATEMACHINE_H
28#define ACTIONSTATEMACHINE_H
33#include <QStateMachine>
39#include <QtXml/QDomDocument>
40#include <QtXml/QDomNodeList>
64 ActionStateMachine(
int& argc,
char** argv, QString inputFileName =
"", QString outputDirectory =
"");
134 void createAllActionStates(QDomNodeList nodeList);
137 void createTransitions(QDomNodeList nodeList);
140 void setCamiTKAction(
ActionState* actionState, QDomElement actionElement);
143 void setCamiTKSaveAction(
SaveActionState* actionState, QDomElement actionElement);
145 QVector<camitk::Action::ApplyStatus> stringToStatus(QString listOfStatus);
149 QString getDomNodeLocation(QDomNode);
This Class describes ActionStateMachine MainWindow extension.
Definition ActionStateMachine.h:57
virtual ~ActionStateMachine()=default
destructor
QString parseSCXMLTree()
parse the XML file (using Qt DOM API) This method may throw an AbortException if a problem occurs.
Definition ActionStateMachine.cpp:625
QDir saveDirectory
Where to save all files.
Definition ActionStateMachine.h:116
QMap< QString, ActionState * > statesMap
Map of action state to build transitions.
Definition ActionStateMachine.h:110
QStateMachine machine
Actual state machine.
Definition ActionStateMachine.h:101
QTextStream * logStream
Log stream to write report on logFile.
Definition ActionStateMachine.h:122
void checkSCXMLFile(QString filename)
check that the file is a SCXML file (simple checking, no XML Schema validation yet) This method may t...
Definition ActionStateMachine.cpp:591
QTime stateMachineTimer
To get track of the Action State Machine the duration.
Definition ActionStateMachine.h:119
void autoNext()
Automatically loop to apply to next state for all states.
Definition ActionStateMachine.cpp:504
QFile * logFile
Log file.
Definition ActionStateMachine.h:125
QFinalState * finalState
Final State.
Definition ActionStateMachine.h:113
QDomDocument scxmlDoc
XML tree containing infos.
Definition ActionStateMachine.h:107
void initMainWindow()
initialized main window
Definition ActionStateMachine.cpp:556
camitk::MainWindow * mainWindow
main window
Definition ActionStateMachine.h:104
QString name
Application's name.
Definition ActionStateMachine.h:98
QString getSaveDirectory()
where to save the files
Definition ActionStateMachine.cpp:983
The state (in a state machine point of view) corresponding to the current processed action.
Definition ActionState.h:48
The asm application uses a state machine.
Definition SaveActionState.h:37
The generic/default application.
Definition Application.h:83
This class is the base class for your application.
Definition MainWindow.h:68