2 #include <LocalTree/GetProperty.hpp>
3 #include <LocalTree/NameProperty.hpp>
4 #include <LocalTree/Property.hpp>
6 #include <score/model/Component.hpp>
10 template <
typename Component_T>
14 template <
typename... Args>
16 : Component_T{std::forward<Args>(args)...}
17 , m_thisNode{n, m,
this}
19 add<score::ModelMetadata::p_comment>(m);
20 add<score::ModelMetadata::p_label>(m);
23 ossia::net::node_base& node()
const {
return m_thisNode.node; }
25 auto& context()
const {
return this->system(); }
28 template <
typename Property,
typename Object>
31 m_properties.push_back(add_property<Property>(node(), obj,
this));
34 template <
typename Property,
typename Object>
35 void add_get(Object& obj)
37 m_properties.push_back(add_getProperty<Property>(node(), obj,
this));
41 std::vector<std::unique_ptr<BaseProperty>> m_properties;
Definition: LocalTreeComponent.hpp:12
Local tree provides a way to extend the tree given through the Engine::Network::LocalDevice.
Definition: BaseCallbackWrapper.hpp:9