fixing and starting ShrubberyCreationForm
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//////////////////
|
||||
// << //
|
||||
|
||||
Reference in New Issue
Block a user