#include "ShrubberyCreationForm.h"
+#include <string>
+#include <iostream>
+#include <fstream>
ShrubberyCreationForm::ShrubberyCreationForm()
: AForm()
void ShrubberyCreationForm::execute(Bureaucrat const &executor) const
{
+ std::ofstream target_file;
+
checkExecutorGrade(executor);
+ target_file.open((getTarget() + std::string("_shrubbery")).c_str());
+ target_file
+ << " * * \n"
+ << " * o * * o * \n"
+ << " * * * * * * \n"
+ << " * o * * * o * * \n"
+ << " * o o* * * o o* * \n"
+ << " * o * * * o * * \n"
+ << " * # # # * * # # # * \n"
+ << " * ##' * * ##' * \n"
+ << " ### ### \n"
+ << " ### ### \n"
+ << " ,###, ,###, \n"
+ << " ,#####. ,#####. \n";
+ target_file.close();
}