LocalTree/ScenarioComponent.hpp
1 #pragma once
2 #include <Scenario/Document/Components/ScenarioComponent.hpp>
3 
4 #include <LocalTree/EventComponent.hpp>
5 #include <LocalTree/IntervalComponent.hpp>
6 #include <LocalTree/StateComponent.hpp>
7 #include <LocalTree/TimeSyncComponent.hpp>
8 
9 namespace LocalTree
10 {
11 class SCORE_PLUGIN_SCENARIO_EXPORT ScenarioComponentBase
12  : public ProcessComponent_T<Scenario::ProcessModel>
13 {
14  COMPONENT_METADATA("57c37324-f5a5-494e-8b45-206750d9fa77")
15 
16 public:
18  ossia::net::node_base& parent, Scenario::ProcessModel& scenario,
19  const score::DocumentContext& doc, QObject* parent_obj);
20 
21  template <typename Component_T, typename Element>
22  Component_T* make(Element& elt);
23 
24  template <typename... Args>
25  bool removing(Args&&...)
26  {
27  return true;
28  }
29  template <typename... Args>
30  void removed(Args&&...)
31  {
32  }
33 
34 private:
35  ossia::net::node_base& m_intervalsNode;
36  ossia::net::node_base& m_eventsNode;
37  ossia::net::node_base& m_timeSyncsNode;
38  ossia::net::node_base& m_statesNode;
39 };
40 
43 
45 }
Definition: Scenario/Document/Components/ScenarioComponent.hpp:198
Definition: EventComponent.hpp:9
Definition: LocalTree/IntervalComponent.hpp:47
Definition: LocalTree/ProcessComponent.hpp:47
Definition: LocalTree/ScenarioComponent.hpp:13
Definition: TimeSyncComponent.hpp:9
The core hierarchical and temporal process of score.
Definition: ScenarioModel.hpp:37
Local tree provides a way to extend the tree given through the Engine::Network::LocalDevice.
Definition: BaseCallbackWrapper.hpp:9
Utilities for OSSIA data structures.
Definition: DeviceInterface.hpp:33
Definition: DocumentContext.hpp:18