Files
cpp05/ex03/RobotomyRequestForm/RobotomyRequestForm.hpp
2026-02-21 12:15:22 +01:00

49 lines
1.6 KiB
C++

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* RobotomyRequestForm.hpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2026/02/21 12:14:35 by aortigos #+# #+# */
/* Updated: 2026/02/21 12:14:35 by aortigos ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef ROBOTOMYREQUESTFORM_HPP
# define ROBOTOMYREQUESTFORM_HPP
# include <iostream>
# include <cstdlib>
# include <ctime>
# include "../AForm/AForm.hpp"
# include "../Bureaucrat/Bureaucrat.hpp"
class RobotomyRequestForm : public AForm
{
private:
std::string target;
public:
RobotomyRequestForm();
RobotomyRequestForm(const RobotomyRequestForm &other);
RobotomyRequestForm &operator=(const RobotomyRequestForm &other);
~RobotomyRequestForm();
RobotomyRequestForm(std::string target);
std::string getTarget() const;
virtual void execute(Bureaucrat const &executor) const;
class FormNotSignedException : public std::exception {
public:
virtual const char* what() const throw();
};
};
#endif