27 #ifndef ACTIONSTATEMACHINE_H
28 #define ACTIONSTATEMACHINE_H
32 #include <QTextStream>
33 #include <QStateMachine>
35 #include <QFinalState>
39 #include <QtXml/QDomDocument>
40 #include <QtXml/QDomNodeList>
65 ActionStateMachine(
int& argc,
char** argv, QString inputFileName =
"", QString outputDirectory =
"");
135 void createAllActionStates(QDomNodeList nodeList);
138 void createTransitions(QDomNodeList nodeList);
141 void setCamiTKAction(
ActionState* actionState, QDomElement actionElement);
144 void setCamiTKSaveAction(
SaveActionState* actionState, QDomElement actionElement);
146 QVector<camitk::Action::ApplyStatus> stringToStatus(QString listOfStatus);
150 QString getDomNodeLocation(QDomNode);
This Class describes ActionStateMachine MainWindow extension.
Definition: ActionStateMachine.h:58
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:624
QDir saveDirectory
Where to save all files.
Definition: ActionStateMachine.h:117
QMap< QString, ActionState * > statesMap
Map of action state to build transitions.
Definition: ActionStateMachine.h:111
QStateMachine machine
Actual state machine.
Definition: ActionStateMachine.h:102
QTextStream * logStream
Log stream to write report on logFile.
Definition: ActionStateMachine.h:123
ActionStateMachine(int &argc, char **argv, QString inputFileName="", QString outputDirectory="")
construtor.
Definition: ActionStateMachine.cpp:50
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:590
QTime stateMachineTimer
To get track of the Action State Machine the duration.
Definition: ActionStateMachine.h:120
void autoNext()
Automatically loop to apply to next state for all states.
Definition: ActionStateMachine.cpp:503
QFile * logFile
Log file.
Definition: ActionStateMachine.h:126
QFinalState * finalState
Final State.
Definition: ActionStateMachine.h:114
QDomDocument scxmlDoc
XML tree containing infos.
Definition: ActionStateMachine.h:108
void initMainWindow()
initialized main window
Definition: ActionStateMachine.cpp:555
camitk::MainWindow * mainWindow
main window
Definition: ActionStateMachine.h:105
QString name
Application's name.
Definition: ActionStateMachine.h:99
QString getSaveDirectory()
where to save the files
Definition: ActionStateMachine.cpp:979
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:82
This class is the base class for your application.
Definition: MainWindow.h:66