Dynamic parameter binding for the MNA parameter tree. More...
#include <mna_param_binding.h>
Public Member Functions | |
| QJsonObject | toJson () const |
| QCborMap | toCbor () const |
Static Public Member Functions | |
| static MnaParamBinding | fromJson (const QJsonObject &json) |
| static MnaParamBinding | fromCbor (const QCborMap &cbor) |
Public Attributes | |
| QString | targetPath |
| Parameter to control: "nodeId/attrKey". | |
| QString | expression |
| Formula string, e.g. "clamp(ref('noise_est_01/snr') * 0.1, 0.01, 1.0)". | |
| QString | trigger |
| "on_change", "periodic", "manual" | |
| int | periodMs = 0 |
| Evaluation period when trigger == "periodic" (ignored otherwise). | |
| QStringList | dependencies |
| Paths this binding reads from. | |
Dynamic parameter binding for the MNA parameter tree.
A formula-driven parameter binding: links a target parameter path to an expression that is re-evaluated when a trigger condition is met.
Definition at line 67 of file mna_param_binding.h.
|
static |
Definition at line 120 of file mna_param_binding.cpp.
|
static |
Definition at line 78 of file mna_param_binding.cpp.
| QCborMap MnaParamBinding::toCbor | ( | ) | const |
Definition at line 96 of file mna_param_binding.cpp.
| QJsonObject MnaParamBinding::toJson | ( | ) | const |
Definition at line 54 of file mna_param_binding.cpp.
| QStringList MNALIB::MnaParamBinding::dependencies |
Paths this binding reads from.
Definition at line 73 of file mna_param_binding.h.
| QString MNALIB::MnaParamBinding::expression |
Formula string, e.g. "clamp(ref('noise_est_01/snr') * 0.1, 0.01, 1.0)".
Definition at line 70 of file mna_param_binding.h.
| int MNALIB::MnaParamBinding::periodMs = 0 |
Evaluation period when trigger == "periodic" (ignored otherwise).
Definition at line 72 of file mna_param_binding.h.
| QString MNALIB::MnaParamBinding::targetPath |
Parameter to control: "nodeId/attrKey".
Definition at line 69 of file mna_param_binding.h.
| QString MNALIB::MnaParamBinding::trigger |
"on_change", "periodic", "manual"
Definition at line 71 of file mna_param_binding.h.