Scenario.hpp
1 #pragma once
2 #include <Scenario/Document/Components/ScenarioComponent.hpp>
3 
4 #include <QMetaObject>
5 
6 #include <RemoteControl/Scenario/Event.hpp>
7 #include <RemoteControl/Scenario/Interval.hpp>
8 #include <RemoteControl/Scenario/State.hpp>
9 #include <RemoteControl/Scenario/Sync.hpp>
10 
11 namespace RemoteControl
12 {
13 class ScenarioBase : public ProcessComponent_T<Scenario::ProcessModel>
14 {
15  COMPONENT_METADATA("fce752e0-e37a-4b71-bc2a-65366ec87152")
16 
17 public:
19  Scenario::ProcessModel& scenario, DocumentPlugin& doc, QObject* parent_obj);
20 
21  template <typename Component_T, typename Element>
22  Component_T* make(Element& elt)
23  {
24  return new Component_T{elt, system(), this};
25  }
26 
27  template <typename... Args>
28  bool removing(Args&&...)
29  {
30  return true;
31  }
32  template <typename... Args>
33  void removed(Args&&...)
34  {
35  }
36 };
37 
40 
42 }
Definition: Scenario/Document/Components/ScenarioComponent.hpp:198
Definition: plugins/score-plugin-remotecontrol/RemoteControl/DocumentPlugin.hpp:125
Definition: Event.hpp:9
Definition: Interval.hpp:44
Definition: score-plugin-remotecontrol/RemoteControl/Scenario/Process.hpp:47
Definition: Scenario.hpp:14
Definition: Sync.hpp:9
The core hierarchical and temporal process of score.
Definition: ScenarioModel.hpp:37
Utilities for OSSIA data structures.
Definition: DeviceInterface.hpp:33