You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
590 B
C++

#include "removecontrollersmodificator.h"
#include "location.h"
RemoveControllersModificator::RemoveControllersModificator()
{}
RemoveControllersModificator::~RemoveControllersModificator()
{}
void RemoveControllersModificator::run() const
{
_location->removeControllers(_controllers_to_remove);
}
void RemoveControllersModificator::setDependentObjects(const std::shared_ptr<Location>& location,
const std::list<std::shared_ptr<Controller>>& controllers)
{
_location = location;
_controllers_to_remove = controllers;
}