2 #include <score/model/ComponentSerialization.hpp>
3 #include <score/model/EntityBase.hpp>
5 #include <ossia-qt/name_utils.hpp>
9 template <
typename T,
bool Ordered>
16 std::vector<QString> bros_names;
17 bros_names.reserve(map.size());
19 map.begin(), map.end(), std::back_inserter(bros_names),
20 [&](
const auto& res) { bros_names.push_back(res.metadata().getName()); });
22 auto new_name = ossia::net::sanitize_name(obj->metadata().getName(), bros_names);
23 obj->metadata().setName(new_name);
25 map.unsafe_map().insert(obj);
27 map.mutable_added(*obj);
32 deserializeRemainingComponents(comps, obj);
Base for complex model objects.
Definition: EntityBase.hpp:24
The EntityMap class.
Definition: EntityMap.hpp:36
Definition: EntityMap.hpp:16
Base toolkit upon which the software is built.
Definition: Application.cpp:90
Definition: lib/score/model/Component.hpp:41