Loading...
Searching...
No Matches
Inheritance diagram for JS::ScriptableNames:

Detailed Description

Names published under score:/controls, triggers and conditions. Reads only the given snapshot, so it is safe on the script's thread.

Public Member Functions

 ScriptableNames (const std::shared_ptr< const LocalTree::ScriptableSnapshot > *names, QObject *parent=nullptr)
 If names is null, the tree of the current document is read.
 
QString kind (const QString &ns, const QString &path)
 "node", "impulse", "value", or empty if the path does not exist
 
QStringList names (const QString &ns, const QString &path)
 
QString address (const QString &ns, const QString &path)
 

Static Public Member Functions

static QJSValue makeNamespaces (QJSEngine &engine, const QJSValue &device, const QJSValue &names)
 Controls, Triggers and Conditions proxies over the given Device object.
 
static QJSValue makeSingleton (QJSEngine &engine, const QString &ns)
 Proxy to namespace ns of the running script, for qualified Score imports.
 

Static Public Attributes

static constexpr auto current = "__scoreScriptable"
 Engine global holding the namespaces of the running process script.
 

The documentation for this class was generated from the following files: