cpp05/ex01/Form.cpp

42 lines
668 B
C++

#include "Form.hpp"
Bureaucrat::Bureaucrat()
{
}
Form::Form() : _name("Default"), _signed(false), _grade_si(150), _grade_ex(150)
{
}
Form::Form(const std::string name, const int grade_si, const int grade_ex) : _name(name), _signed(false), _grade_si(grade_si), _grade_ex(grade_ex)
{
}
Form::Form(const Form &other) : _name(other._name), _signed(other._signed), _grade_si(other._grade_si), _grade_ex(other._grade_ex)
{
}
Form::~Form()
{
}
std::string Form::getName() const
{
return (_name);
}
bool Form::getSigned() const
{
return (_signed);
}
int Form::getExecuteGrade() const
{
return (_grade_ex);
}
int Form::getSignGrade() const
{
return (_grade_si);
}