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