v2.0.0
Loading...
Searching...
No Matches
mna_param_binding.h
Go to the documentation of this file.
1//=============================================================================================================
27
28#ifndef MNA_PARAM_BINDING_H
29#define MNA_PARAM_BINDING_H
30
31//=============================================================================================================
32// INCLUDES
33//=============================================================================================================
34
35#include "mna_global.h"
36
37//=============================================================================================================
38// QT INCLUDES
39//=============================================================================================================
40
41#include <QString>
42#include <QStringList>
43#include <QJsonObject>
44#include <QCborMap>
45
46//=============================================================================================================
47// DEFINE NAMESPACE MNALIB
48//=============================================================================================================
49
50namespace MNALIB
51{
52
53//=============================================================================================================
61{
62 QString targetPath;
63 QString expression;
64 QString trigger;
65 int periodMs = 0;
66 QStringList dependencies;
67
68 QJsonObject toJson() const;
69 static MnaParamBinding fromJson(const QJsonObject& json);
70 QCborMap toCbor() const;
71 static MnaParamBinding fromCbor(const QCborMap& cbor);
72};
73
74} // namespace MNALIB
75
76#endif // MNA_PARAM_BINDING_H
Export/import macros, build-info accessors, and MNALIB namespace anchor for the MNE Analysis Containe...
#define MNASHARED_EXPORT
Definition mna_global.h:47
MNE Analysis Container Format (mna/mnx).
Dynamic parameter binding for the MNA parameter tree.
static MnaParamBinding fromCbor(const QCborMap &cbor)
QString expression
Formula string, e.g. "clamp(ref('noise_est_01/snr') * 0.1, 0.01, 1.0)".
int periodMs
Evaluation period when trigger == "periodic" (ignored otherwise).
QStringList dependencies
Paths this binding reads from.
QString targetPath
Parameter to control: "nodeId/attrKey".
static MnaParamBinding fromJson(const QJsonObject &json)
QString trigger
"on_change", "periodic", "manual"
QJsonObject toJson() const