ControlInletItem.hpp
1 #pragma once
2 #include <Dataflow/PortItem.hpp>
3 
4 namespace Dataflow
5 {
6 struct SCORE_PLUGIN_DATAFLOW_EXPORT ControlInletFactory : public AutomatablePortFactory
7 {
9  UuidKey<Process::Port> concreteKey() const noexcept override
10  {
12  }
13 
14  Model_T* load(const VisitorVariant& vis, QObject* parent) override
15  {
16  return score::deserialize_dyn(vis, [&](auto&& deserializer) {
17  return new Model_T{deserializer, parent};
18  });
19  }
20 
21  void setupInletInspector(
22  const Process::Inlet& port, const score::DocumentContext& ctx, QWidget* parent,
23  Inspector::Layout& lay, QObject* context) override;
24 };
25 }
Definition: score-plugin-dataflow/Dataflow/PortItem.hpp:38
Definition: lib/score/widgets/Layout.hpp:29
Definition: Port.hpp:203
Definition: Port.hpp:177
Definition: UuidKey.hpp:343
Definition: ControlInletItem.hpp:7
Static metadata implementation.
Definition: lib/score/tools/Metadata.hpp:36
The VisitorVariant struct.
Definition: VisitorInterface.hpp:26
Definition: DocumentContext.hpp:18