Files
cpp05/ex03/Intern/Intern.hpp

41 lines
1.6 KiB
C++

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Intern.hpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2026/02/21 12:14:18 by aortigos #+# #+# */
/* Updated: 2026/02/21 12:43:00 by aortigos ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef INTERN_HPP
# define INTERN_HPP
# include <iostream>
# include <string>
# include "../AForm/AForm.hpp"
# include "../ShrubberyCreationForm/ShrubberyCreationForm.hpp"
# include "../RobotomyRequestForm/RobotomyRequestForm.hpp"
# include "../PresidentialPardonForm/PresidentialPardonForm.hpp"
class Intern
{
private:
AForm* createShrubbery(const std::string &target);
AForm* createRobotomy(const std::string &target);
AForm* createPardon(const std::string &target);
public:
Intern();
Intern(const Intern &other);
Intern& operator=(const Intern &other);
~Intern();
AForm* makeForm(const std::string &formName, const std::string &target);
};
#endif