37 if (group->getGroupId().compare(groupId) == 0)
49 if (this->getGroupById(group->getGroupId()) != NULL)
51 throw std::logic_error(
"Group already exists!");
55 sceneGroups.push_back(group);
62 if (std::find(sceneGroups.begin(), sceneGroups.end(), group) != sceneGroups.end())
65 sceneGroups.erase(std::remove(sceneGroups.begin(), sceneGroups.end(), group), sceneGroups.end());
69 throw std::runtime_error(
"This group is not registered in the sceneGroupManager!");
74 throw std::runtime_error(
"Group is null!");
80 if (this->getGroupById(newGroupId) != NULL)
82 throw std::invalid_argument(
"New ID of Group already exists!");
86 group->setGroupId(newGroupId);