「✨」 feat: finished ex02
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/12/23 13:59:43 by adjoly #+# #+# */
|
||||
/* Updated: 2025/04/01 10:50:00 by adjoly ### ########.fr */
|
||||
/* Updated: 2025/04/03 13:50:01 by adjoly ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@ -21,7 +21,7 @@
|
||||
void _log(std::string emoji, std::string what, std::string who,
|
||||
std::string str);
|
||||
|
||||
class Form;
|
||||
class AForm;
|
||||
|
||||
typedef unsigned char uint8_t;
|
||||
|
||||
@ -38,6 +38,8 @@ class Bureaucrat {
|
||||
const std::string &getName(void) const;
|
||||
uint8_t getGrade(void) const;
|
||||
|
||||
void executeForm(const AForm &) const;
|
||||
|
||||
class GradeTooHighException : public std::exception {
|
||||
public:
|
||||
virtual const char *what() const throw();
|
||||
@ -58,7 +60,7 @@ class Bureaucrat {
|
||||
Bureaucrat operator++(int);
|
||||
Bureaucrat operator--(int);
|
||||
|
||||
void signForm(Form &);
|
||||
void signForm(AForm &);
|
||||
private:
|
||||
const std::string _name;
|
||||
uint8_t _grade;
|
||||
|
Reference in New Issue
Block a user