void Bureaucrat::signForm(Form & f) { if (this->_grade > f.getSignGrade()) { std::cout << this->_name << " cannot sign because "; throw Bureaucrat::GradeTooLowException(); } else { f.beSigned(*this); std::cout << this->_name << " signs " << f.getName() << std::endl; } return; }
Form::Form( Form const & src ) : _name(src.getName()), _signed(src.getSigned()), _signGrade(src.getSignGrade()), _executeGrade(src.getExecuteGrade()) { }
Form::Form( Form const & src ) : _name(src.getName()), _sign_grade(src.getSignGrade()), _exec_grade(src.getExecGrade()), _status( src.getStatus() ) { *this = src; return ; }