Ejemplo n.º 1
0
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;
	}

}
Ejemplo n.º 2
0
Archivo: Form.cpp Proyecto: Hadopire/42
Form::Form( Form const & src ) :
    _name(src.getName()), _signed(src.getSigned()), _signGrade(src.getSignGrade()),
    _executeGrade(src.getExecuteGrade())
{
}