Beispiel #1
0
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;
}
Beispiel #2
0
Form::Form( Form const & src ) :
    _name(src.getName()), _signed(src.getSigned()), _signGrade(src.getSignGrade()),
    _executeGrade(src.getExecuteGrade())
{
}
Beispiel #3
0
Form::Form( Form const & src ) : _name(src.getName()), _sign_grade(src.getSignGrade()),
 _exec_grade(src.getExecGrade()), _status( src.getStatus() )
{
	*this = src;
	return ;
}