fixing and starting ShrubberyCreationForm

This commit is contained in:
2026-02-17 17:49:39 +01:00
parent 838b97e98a
commit 5d62dbd20d
6 changed files with 159 additions and 4 deletions

View File

@@ -106,6 +106,24 @@ void Bureaucrat::signForm(AForm &form)
}
}
void Bureaucrat::executeForm(AForm &form)
{
try {
form.execute(*this);
std::cout << this->name
<< " executed "
<< form.getName()
<< std::endl;
} catch (std::exception &e) {
std::cout << this->name
<< " couldn't execute "
<< form.getName()
<< " because "
<< e.what()
<< std::endl;
}
}
//////////////////
// << //

View File

@@ -39,6 +39,7 @@ class Bureaucrat
void decrementGrade();
void signForm(AForm &form);
void executeForm(AForm &form);
class GradeTooHighException : public std::exception {
public: