Local tree provides a way to extend the tree given through the Engine::Network::LocalDevice.
More...
Local tree provides a way to extend the tree given through the Engine::Network::LocalDevice.
It is a device tree used to access to score's internal data structures from the outside, or use it in automations, etc.
For instance, it allows to do conditions based on the advancement of each Scenario::IntervalModel.
It is possible to extend the tree for Process::ProcessModels, or other polymorphic types.
|
|
template<typename Property , typename Object > |
| auto | add_getProperty (ossia::net::node_base &n, Object &obj, QObject *context) |
| |
|
template<typename Property , typename Object > |
| auto | add_property (ossia::net::node_base &n, Object &obj, QObject *context) |
| |
|
template<typename Property , typename Object > |
| auto | add_property (ossia::net::node_base &n, Object &obj, const std::string &name, QObject *context) |
| |
|
template<typename T , typename Callback > |
| auto | make_setProperty (ossia::net::parameter_base &addr, Callback prop) |
| |
|
template<typename T , typename Callback > |
| auto | add_setProperty (ossia::net::node_base &n, const std::string &name, Callback cb) |
| |
|
::State::Address | addressOfNode (const ossia::net::node_base &n) |
| |
|
void | giveName (GivenName &given, score::ModelMetadata &metadata, const QString &own, const QString &name) |
| |
|
void | giveName (GivenName &given, Process::Port &port, const QString &name) |
| |
|
::State::Address | scriptableAddress (const Process::ProcessModel &) |
| | score:/controls/<process>[/<port>|/preset]; empty when not published.
|
| |
|
::State::Address | scriptableAddress (const Process::Port &port) |
| |
|
bool | publishedWithProcess (const Process::Port &) noexcept |
| | Controls of a scriptable process are published whether or not flagged.
|
| |
|
bool | wantsPublished (const Process::Port &port) noexcept |
| |
|
::State::Address | scriptableStateAddress (const Process::ProcessModel &proc) |
| |
|
ScriptableProcessBase * | makeScriptableProcess (ScriptableRoots roots, Process::ProcessModel &proc, const score::DocumentContext &ctx, QObject *parent) |
| |
|
void | announceReferrer (const ScriptableRoots &roots, QObject &object) |
| |
|
void | tagNode (const ScriptableRoots &roots, ossia::net::node_base &node, const QObject &object, const QString &member={}) |
| |
|
void | retireNode (const ScriptableRoots &roots, ossia::net::node_base &node) |
| |
|
template<typename F > |
| ossia::net::node_base * | createScriptableNode (const ScriptableRoots &roots, ossia::net::node_base &parent, const QString &name, F &&writeBack) |
| | writeBack gets the name the device picked when it differs, e.g. on collision
|
| |
|
template<typename F > |
| void | renameScriptableNode (ossia::net::node_base &node, const QString &name, F &&writeBack) |
| |
|
bool | anchor (::State::Address &a, const score::DocumentContext &ctx) |
| | Anchors a local-device address to the object published there; returns whether it has an anchor.
|
| |
|
bool | anchor (::State::AddressAccessor &a, const score::DocumentContext &ctx) |
| |
|
void | anchor (::State::Expression &e, const score::DocumentContext &ctx) |
| | Every address inside the expression.
|
| |
| void | settle (::State::Address &a, const score::DocumentContext &ctx) |
| |
|
void | settle (::State::AddressAccessor &a, const score::DocumentContext &ctx) |
| |
|
void | settle (::State::Expression &e, const score::DocumentContext &ctx) |
| | Every address inside the expression.
|
| |
|
bool | settle (Process::MessageNode &node, const score::DocumentContext &ctx) |
| | Every message of the tree; returns whether an anchor changed.
|
| |
| std::optional< bool > | published (const ::State::Address &a, const score::DocumentContext &ctx) |
| |
|
AddressStatus | addressStatus (const ::State::Address &a, const score::DocumentContext &ctx) |
| |
|
QString | describe (AddressStatus s) |
| | What to tell the user about a status that is not Found.
|
| |
|
QObject * | publishedObject (const ::State::Address &a, const score::DocumentContext &ctx, QString &member) |
| | member receives which of the object's parameters the address is
|
| |
| bool | isProcessState (const ::State::Address &a, const score::DocumentContext &ctx) |
| |
|
bool | broken (const ::State::Address &a, const score::DocumentContext &ctx) |
| |
|
void | mapAnchors (Process::MessageNode &n, const AnchorMapping &f) |
| |
|
void | mapAnchors (::State::Expression &e, const AnchorMapping &f) |
| |
|
void | mapAddresses (::State::Expression &e, const AddressMapping &map, bool &changed) |
| | Replaces each address of the expression with the mapping's result, if any.
|
| |
|
::State::Address | derive (const ::State::Anchor &a, const score::DocumentContext &ctx) |
| | The address the anchored object currently publishes; unset if it does not publish.
|
| |
| ::State::Address | derived (const ::State::Address &a, const score::DocumentContext &ctx) |
| |
|
::State::AddressAccessor | derived (const ::State::AddressAccessor &a, const score::DocumentContext &ctx) |
| |
|
Device::DeviceSettings | defaultSettings (const score::DocumentContext &ctx) |
| |
|
template<typename Property , typename Object > |
| auto | add_value_property (ossia::net::node_base &n, Object &obj, const std::string &name, QObject *context) |
| |
|
template<> |
| Interval * | ScenarioComponentBase::make< Interval, Scenario::IntervalModel > (Scenario::IntervalModel &elt) |
| |
|
template<> |
| Event * | ScenarioComponentBase::make< Event, Scenario::EventModel > (Scenario::EventModel &elt) |
| |
|
template<> |
| TimeSync * | ScenarioComponentBase::make< TimeSync, Scenario::TimeSyncModel > (Scenario::TimeSyncModel &elt) |
| |
|
template<> |
| State * | ScenarioComponentBase::make< State, Scenario::StateModel > (Scenario::StateModel &elt) |
| |
|
template<> |
| ScriptableInterval * | ScriptableScenarioBase::make< ScriptableInterval, Scenario::IntervalModel > (Scenario::IntervalModel &elt) |
| |
|
template<> |
| ScriptableEvent * | ScriptableScenarioBase::make< ScriptableEvent, Scenario::EventModel > (Scenario::EventModel &elt) |
| |
|
template<> |
| ScriptableTimeSync * | ScriptableScenarioBase::make< ScriptableTimeSync, Scenario::TimeSyncModel > (Scenario::TimeSyncModel &elt) |
| |
|
template<> |
| ScriptableState * | ScriptableScenarioBase::make< ScriptableState, Scenario::StateModel > (Scenario::StateModel &elt) |
| |
|
::State::Address | scriptableAddress (const Scenario::TimeSyncModel &sync) |
| |
|
::State::Address | scriptableAddress (const Scenario::EventModel &event) |
| |