mirror of
https://github.com/Ladebeze66/cpp-partie-2.git
synced 2025-12-15 21:56:55 +01:00
41 lines
1.5 KiB
C++
41 lines
1.5 KiB
C++
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ShrubberyCreationForm.hpp :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: fgras-ca <fgras-ca@student.42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2024/02/20 16:41:49 by fgras-ca #+# #+# */
|
|
/* Updated: 2024/03/11 15:04:32 by fgras-ca ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#ifndef SHRUBBERYCREATIONFORM_HPP
|
|
#define SHRUBBERYCREATIONFORM_HPP
|
|
|
|
#include "AForm.hpp"
|
|
#include "Bureaucrat.hpp"
|
|
#include <fstream>
|
|
#include <iostream>
|
|
|
|
#define RESET "\033[0m"
|
|
#define GREEN "\033[32m"
|
|
#define CYAN "\033[36m"
|
|
#define RED "\033[31m"
|
|
class ShrubberyCreationForm : public AForm
|
|
{
|
|
private:
|
|
std::string target;
|
|
|
|
public:
|
|
ShrubberyCreationForm();
|
|
ShrubberyCreationForm(const std::string& target);
|
|
ShrubberyCreationForm(const ShrubberyCreationForm& other);
|
|
ShrubberyCreationForm& operator=(const ShrubberyCreationForm& other);
|
|
virtual ~ShrubberyCreationForm();
|
|
|
|
void execute(Bureaucrat const &executor) const;
|
|
std::string getTarget() const;
|
|
};
|
|
|
|
#endif |