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

48 lines
1.6 KiB
C++

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