1
0

🔨」 fix: fixed Form class from ex01

This commit is contained in:
2025-04-01 11:09:10 +02:00
parent d56e8011de
commit 9e85ca79d9
16 changed files with 204 additions and 74 deletions

View File

@ -6,7 +6,7 @@
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/03/08 20:10:59 by adjoly #+# #+# */
/* Updated: 2025/03/30 15:11:58 by adjoly ### ########.fr */
/* Updated: 2025/04/01 10:57:28 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
@ -20,14 +20,16 @@ void _log(std::string emoji, std::string what, std::string who,
typedef unsigned char uint8_t;
#include "Bureaucrat.hpp"
//class Bureaucrat;
class Form {
public:
Form(void);
Form(std::string name, uint8_t minForSign, uint8_t minForExec);
Form(const Form &);
~Form(void);
Form &operator=(const Form &);
class GradeTooHighException : public std::exception {
public:
virtual const char *what() const throw();
@ -45,10 +47,12 @@ class Form {
void beSigned(Bureaucrat);
private:
const std::string _name;
std::string _name;
bool _signed;
const uint8_t _minForSign;
const uint8_t _minForExec;
void _gradeCheck(void) const;
};
std::ostream &operator<<(std::ostream &, Form &);