/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* Bureaucrat.hpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: aortigos class Bureaucrat { private: const std::string name; int grade; public: Bureaucrat(); Bureaucrat(const Bureaucrat &other); Bureaucrat &operator=(const Bureaucrat &other); ~Bureaucrat(); Bureaucrat(std::string name, int grade); std::string getName() const; int getGrade() const; void incrementGrade(); void decrementGrade(); class GradeTooHighException : public std::exception { public: virtual const char* what() const throw(); }; class GradeTooLowException : public std::exception { public: virtual const char* what() const throw(); }; }; std::ostream &operator<<(std::ostream &os, const Bureaucrat &bureaucrat); #endif