Loading...
Searching...
No Matches
LocalTree/IntervalComponent.hpp
1#pragma once
2#include <Scenario/Document/Components/IntervalComponent.hpp>
3
4#include <LocalTree/LocalTreeComponent.hpp>
5#include <LocalTree/ProcessComponent.hpp>
6
7#include <score/model/ComponentHierarchy.hpp>
8
9namespace LocalTree
10{
11class SCORE_PLUGIN_SCENARIO_EXPORT IntervalBase
12 : public Component<Scenario::GenericIntervalComponent<const score::DocumentContext>>
13{
14 COMMON_COMPONENT_METADATA("11d928b5-eaeb-471c-b3b7-dc453180b10f")
15public:
16 static constexpr bool is_unique = true;
17 using parent_t
23
25 ossia::net::node_base& parent, Scenario::IntervalModel& interval,
26 const score::DocumentContext& sys, QObject* parent_comp);
27
29 make(ProcessComponentFactory& factory, Process::ProcessModel& process);
31
32 bool removing(const Process::ProcessModel& cst, const ProcessComponent& comp);
33 template <typename... Args>
34 void added(Args&&...)
35 {
36 }
37 template <typename... Args>
38 void removed(Args&&...)
39 {
40 }
41
42private:
43 ossia::net::node_base& m_processesNode;
44};
45
46class SCORE_PLUGIN_SCENARIO_EXPORT Interval final
47 : public score::PolymorphicComponentHierarchy<IntervalBase>
48{
49public:
50 template <typename... Args>
51 Interval(Args&&... args)
52 : score::PolymorphicComponentHierarchy<IntervalBase>{std::forward<Args>(args)...}
53 {
54 }
55 ~Interval();
56};
57}
Definition LocalTreeComponent.hpp:12
Definition LocalTree/IntervalComponent.hpp:13
Definition LocalTree/IntervalComponent.hpp:48
Definition LocalTree/ProcessComponent.hpp:35
Definition LocalTree/ProcessComponent.hpp:64
Definition LocalTree/ProcessComponent.hpp:15
The Process class.
Definition score-lib-process/Process/Process.hpp:61
Definition IntervalModel.hpp:50
Manages polymorphic hierarchies of components.
Definition ComponentHierarchy.hpp:165
Local tree provides a way to extend the tree given through the Engine::Network::LocalDevice.
Definition BaseCallbackWrapper.hpp:9
Definition DocumentContext.hpp:18