30#ifndef MNA_OP_REGISTRY_H
31#define MNA_OP_REGISTRY_H
69 using OpFunc = std::function<QVariantMap(
const QVariantMap& inputs,
70 const QVariantMap& attributes)>;
93 bool hasOp(
const QString& opType)
const;
144 QStringList
missingOps(
const QStringList& pipelineTools)
const;
149 QMap<QString, MnaOpSchema> m_schemas;
150 QMap<QString, OpFunc> m_funcs;
Declarative contract for an MNA operation — expected input/output ports, attributes,...
Export/import macros, build-info accessors, and MNALIB namespace anchor for the MNE Analysis Containe...
MNE Analysis Container Format (mna/mnx).
static MnaOpRegistry & instance()
OpFunc opFunc(const QString &opType) const
QStringList registeredOps() const
bool hasOp(const QString &opType) const
void registerOpFunc(const QString &opType, OpFunc func)
void registerOp(const MnaOpSchema &schema)
MnaOpSchema schema(const QString &opType) const
QStringList missingOps(const QStringList &pipelineTools) const
std::function< QVariantMap(const QVariantMap &inputs, const QVariantMap &attributes)> OpFunc
Operation implementation callback type.
Operation schema for graph validation.