The QScxmlCompiler class is a compiler for SCXML files. More...
Header: | #include <QScxmlCompiler> |
qmake: | QT += scxml |
Since: | Qt 5.7 |
class | Loader |
QScxmlCompiler(QXmlStreamReader *reader) | |
~QScxmlCompiler() | |
QScxmlStateMachine * | compile() |
QVector<QScxmlError> | errors() const |
QString | fileName() const |
QScxmlCompiler::Loader * | loader() const |
void | setFileName(const QString &fileName) |
void | setLoader(QScxmlCompiler::Loader *newLoader) |
The QScxmlCompiler class is a compiler for SCXML files.
Parses an SCXML file and dynamically instantiates a state machine for a successfully parsed SCXML file. If parsing fails, the new state machine cannot start. All errors are returned by QScxmlStateMachine::parseErrors().
To load an SCXML file, QScxmlStateMachine::fromFile or QScxmlStateMachine::fromData should be used. Using QScxmlCompiler directly is only needed when the compiler needs to use a custom QScxmlCompiler::Loader.
Creates a new SCXML compiler for the specified reader.
Destroys the SCXML compiler.
Parses an SCXML file and creates a new state machine from it.
If parsing is successful, the returned state machine can be initialized and started. If parsing fails, QScxmlStateMachine::parseErrors() can be used to retrieve a list of errors.
Returns the list of parse errors.
Returns the file name associated with the current input.
See also setFileName().
Returns the loader that is currently used to resolve and load URIs for the SCXML compiler.
See also setLoader().
Sets the file name for the current input to fileName.
The file name is used for error reporting and for resolving relative path URIs.
See also fileName().
Sets newLoader to be used for resolving and loading URIs for the SCXML compiler.
See also loader().
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: