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>
129 QVector<camitk::Action::ApplyStatus>
stringToStatus(QString listOfStatus);
136 #endif // ACTIONSTATEMACHINE_H
QVector< camitk::Action::ApplyStatus > stringToStatus(QString listOfStatus)
The generic/default application.
Definition: Application.h:58
QFinalState * theEnd
Final State.
Definition: ActionStateMachine.h:101
Exception class to handle abortion in component instanciation.
Definition: AbortException.h:44
int argc
argc given from command line
Definition: Application.h:331
This Class is the base class for your application.
Definition: MainWindow.h:62
virtual ~ActionStateMachine()
destructor
void setCamiTKAction(ActionState *actionState, QDomElement actionElement)
void checkSCXMLFile(QString filename)
check that the file is a SCXML file (simple checking, no XML Schema validation yet) ...
void setCamiTKSaveAction(SaveActionState *actionState, QDomElement actionElement)
QString getDomNodeLocation(QDomNode)
build a specific error message containing the line and column if available
QString name
Application's name.
Definition: ActionStateMachine.h:86
The state (in a state machine point of view) corresponding to the current processed action...
Definition: ActionState.h:47
ActionStateMachine(int &argc, char **argv, QString inputFileName="", QString outputDirectory="")
construtor
QDomDocument scxmlDoc
XML tree containing infos.
Definition: ActionStateMachine.h:95
void createTransitions(QDomNodeList nodeList)
QMap< QString, ActionState * > * statesMap
Map of action state to build transitions.
Definition: ActionStateMachine.h:98
QString parseSCXMLTree()
parse the XML file (using Qt DOM API)
void initMainWindow()
initialized main window
This Class describes ActionStateMachine MainWindow extension.
Definition: ActionStateMachine.h:58
char ** argv
argv given from command line
Definition: Application.h:334
camitk::MainWindow * mainWindow
main window
Definition: ActionStateMachine.h:92
QStateMachine machine
Actual state machine.
Definition: ActionStateMachine.h:89
QTextStream * logStream
Log stream to write report on logFile.
Definition: ActionStateMachine.h:110
QFile * logFile
Log file.
Definition: ActionStateMachine.h:113
QTime * startTime
To get track of the Action State Machine the duration.
Definition: ActionStateMachine.h:107
The asm application uses a state machine.
Definition: SaveActionState.h:37
void createAllActionStates(QDomNodeList nodeList)
QDir saveDirectory
Where to save all files.
Definition: ActionStateMachine.h:104
QString getSaveDirectory()
where to save the files