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;