CPP05/ex02/inc/ShrubberyCreationForm.hpp

25 lines
674 B
C++

#pragma once
#include <iostream>
#include <string>
#include "AForm.hpp"
class ShrubberyCreationForm : public AForm
{
private:
const std::string _target;
public:
ShrubberyCreationForm() = delete; // Default constructor is deleted
ShrubberyCreationForm(std::string target);
ShrubberyCreationForm(const ShrubberyCreationForm &other);
~ShrubberyCreationForm();
ShrubberyCreationForm &operator=(const ShrubberyCreationForm &other) =
delete;
void execute(const Bureaucrat &executor) const override;
const std::string getTarget() const;
};
std::ostream &operator<<(std::ostream &os, const ShrubberyCreationForm &form);