Loader Class | Qt SCXML 5.9

Qt 5.9 | Qt SCXML | C++ Classes | Loader

Qt 5.9.2 Reference Documentation

# Loader Class

(QScxmlCompiler::Loader)

The Loader class is a URI resolver and resource loader for an SCXML compiler. More...

Header: | #include <Loader>
qmake: | QT += scxml
Since: | Qt 5.8

- List of all members, including inherited members

## Public Functions

| Loader()
virtual | ~Loader()
virtual QByteArray | load(const QString &name, const QString &baseDir, QStringList *errors) = 0

## Detailed Description

The Loader class is a URI resolver and resource loader for an SCXML compiler.

## Member Function Documentation

### Loader::Loader()

Creates a new loader.

### `[virtual]` Loader::~Loader()

Destroys the loader.

### `[pure virtual]` QByteArray Loader::load(const QString &name, const QString &baseDir, QStringList *errors)

Resolves the URI name and loads an SCXML file from the directory specified by baseDir. errors contains information about the errors that might have occurred.

Returns a QByteArray that stores the contents of the file.