MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/xstudio / insert_container

Method insert_container

src/playlist/src/playlist.cpp:55–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55bool Playlist::insert_container(
56 PlaylistTree container, const utility::Uuid &uuid_before, const bool into) {
57
58 bool result = false;
59
60 if (container.value().type() == "Playlist" or container.value().type() == "") {
61 for (auto &i : container.children_) {
62 result |= insert_container(i, uuid_before, into);
63 }
64 } else {
65 result = container_tree_.insert(std::move(container), uuid_before, into);
66 }
67
68 return result;
69}
70
71std::optional<Uuid>
72Playlist::insert_group(const std::string &name, const utility::Uuid &uuid_before) {

Callers 3

message_handlerMethod · 0.45
create_containerMethod · 0.45
duplicate_containerMethod · 0.45

Calls 3

typeMethod · 0.45
valueMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected