cpp/cpp05/ex02/RobotomyRequestForm.cpp
Alexandre POMMIER 04eaf3c332 little step ex05
2022-08-04 19:46:56 +02:00

45 lines
1.5 KiB
C++

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* RobotomyRequestForm.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: apommier <apommier@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/08/04 15:14:32 by apommier #+# #+# */
/* Updated: 2022/08/04 18:54:53 by apommier ### ########.fr */
/* */
/* ************************************************************************** */
#include "RobotomyRequestForm.hpp"
RobotomyRequestForm::RobotomyRequestForm() : AForm(72, 45, "RobotomyRequestForm")
{
}
RobotomyRequestForm::RobotomyRequestForm(std::string target) : AForm(72, 45, "RobotomyRequestForm")
{
this->_target = target;
}
RobotomyRequestForm::RobotomyRequestForm(const RobotomyRequestForm& copy) : AForm(copy)
{
*this = copy;
}
RobotomyRequestForm::~RobotomyRequestForm()
{
}
RobotomyRequestForm &RobotomyRequestForm::operator=(const RobotomyRequestForm& rhs)
{
if (&rhs != this)
this->_target = rhs._target;
return (*this);
}
void RobotomyRequestForm::execute(Bureaucrat const & executor) const
{
AForm::execute(executor);
}