Loader Class

( QScxmlCompiler::Loader )

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

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

公共函数

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

详细描述

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

成员函数文档编制

Loader:: Loader ()

Creates a new loader.

[虚拟] 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.

返回 QByteArray that stores the contents of the file.