「🔨」 fix: fixed Form class from ex01
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/03/29 15:02:17 by adjoly ### ########.fr */
|
||||
/* Updated: 2025/04/01 10:50:00 by adjoly ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@ -18,14 +18,16 @@
|
||||
#include <stdexcept>
|
||||
#include <string>
|
||||
|
||||
void _log(std::string emoji, std::string what, std::string who,
|
||||
std::string str);
|
||||
|
||||
class Form;
|
||||
|
||||
typedef unsigned char uint8_t;
|
||||
|
||||
#define MAXGRADE 1
|
||||
#define MINGRADE 150
|
||||
|
||||
void _log(std::string emoji, std::string what, std::string who,
|
||||
std::string str);
|
||||
|
||||
class Bureaucrat {
|
||||
public:
|
||||
Bureaucrat(void);
|
||||
@ -33,8 +35,8 @@ class Bureaucrat {
|
||||
Bureaucrat(std::string name, uint8_t grade);
|
||||
~Bureaucrat(void);
|
||||
|
||||
const std::string &getName(void);
|
||||
uint8_t getGrade(void);
|
||||
const std::string &getName(void) const;
|
||||
uint8_t getGrade(void) const;
|
||||
|
||||
class GradeTooHighException : public std::exception {
|
||||
public:
|
||||
@ -56,6 +58,7 @@ class Bureaucrat {
|
||||
Bureaucrat operator++(int);
|
||||
Bureaucrat operator--(int);
|
||||
|
||||
void signForm(Form &);
|
||||
private:
|
||||
const std::string _name;
|
||||
uint8_t _grade;
|
||||
|
Reference in New Issue
Block a user