void Bureaucrat::signForm(Form & con) { if (con.beSigned(*this)) { std::cout << this->_name << " signs " << con.getName() << "." << std::endl; } else if (!con.getSigned()) { std::cout << this->_name << " cannot sign " << con.getName() << " because his level is too low." << std::endl; } else { std::cout << this->_name << " cannot sign " << con.getName() << " because the form is already signed." << std::endl; } }
Form::Form( Form const & src ) : _name(src.getName()), _signed(src.getSigned()), _signGrade(src.getSignGrade()), _executeGrade(src.getExecuteGrade()) { }