2 #include <Process/Execution/ProcessComponent.hpp>
3 #include <Process/ExecutionComponent.hpp>
4 #include <Process/Process.hpp>
6 #include <Scenario/Document/Components/IntervalComponent.hpp>
7 #include <Scenario/Document/State/StateModel.hpp>
9 #include <score/model/ComponentHierarchy.hpp>
11 #include <ossia/dataflow/nodes/state.hpp>
27 COMMON_COMPONENT_METADATA(
"b3905e79-2bd0-48bd-8654-8666455ceedd")
29 static constexpr
bool is_unique =
true;
40 void onDelete()
const;
41 void updateControls();
48 template <
typename... Args>
52 template <
typename Component_T,
typename Element,
typename Fun>
53 void removed(
const Element& elt,
const Component_T& comp, Fun f)
58 template <
typename Models>
59 const auto& models()
const
62 std::is_same<Models, Process::ProcessModel>::value,
63 "State component must be passed Process::ProcessModel as child.");
65 return m_model->stateProcesses;
68 const auto& processes()
const {
return m_processes; }
69 const auto& state()
const
71 SCORE_ASSERT(m_model);
74 const std::shared_ptr<ossia::nodes::state_writer>& node()
const {
return m_node; }
77 QPointer<const Scenario::StateModel> m_model;
78 std::shared_ptr<ossia::time_event> m_ev;
79 std::shared_ptr<ossia::nodes::state_writer> m_node;
80 score::hash_map<Id<Process::ProcessModel>, std::shared_ptr<ProcessComponent>>
88 template <
typename... Args>
90 : PolymorphicComponentHierarchyManager{
106 void cleanup(
const std::shared_ptr<StateComponent>&);
Definition: Process/Execution/ProcessComponent.hpp:102
Definition: Process/Execution/ProcessComponent.hpp:154
Definition: Process/Execution/ProcessComponent.hpp:48
Definition: StateExecution.hpp:26
Definition: StateExecution.hpp:86
The Process class.
Definition: score-lib-process/Process/Process.hpp:61
Definition: StateModel.hpp:63
A component that has a reference to a specific context object.
Definition: lib/score/model/Component.hpp:58
Manages polymorphic hierarchies of components.
Definition: ComponentHierarchy.hpp:165
Components used for the execution of a score.
Definition: ProcessComponent.cpp:12
Main plug-in of score.
Definition: score-plugin-dataflow/Dataflow/PortItem.hpp:14
Definition: ExecutionContext.hpp:76
Definition: lib/score/model/Component.hpp:16