46 lines
1.6 KiB
C++
46 lines
1.6 KiB
C++
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* PresidentialPardonForm.hpp :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2026/02/21 12:14:27 by aortigos #+# #+# */
|
|
/* Updated: 2026/02/21 12:14:27 by aortigos ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#ifndef PRESIDENTIALPARDONFORM_HPP
|
|
|
|
# define PRESIDENTIALPARDONFORM_HPP
|
|
|
|
# include <iostream>
|
|
# include "../AForm/AForm.hpp"
|
|
# include "../Bureaucrat/Bureaucrat.hpp"
|
|
|
|
class PresidentialPardonForm : public AForm
|
|
{
|
|
private:
|
|
std::string target;
|
|
|
|
public:
|
|
PresidentialPardonForm();
|
|
PresidentialPardonForm(const PresidentialPardonForm &other);
|
|
PresidentialPardonForm &operator=(const PresidentialPardonForm &other);
|
|
~PresidentialPardonForm();
|
|
|
|
PresidentialPardonForm(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
|