-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathForm.hpp
59 lines (47 loc) · 1.73 KB
/
Form.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Form.hpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mamaurai <mamaurai@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/05/06 09:45:29 by mamaurai #+# #+# */
/* Updated: 2022/05/13 11:13:05 by mamaurai ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef FORM_HPP
# define FORM_HPP
#include <iostream>
#include "Bureaucrat.hpp"
class Bureaucrat;
class Form
{
private:
std::string const _name;
bool _isSigned;
int const _rankToSign;
int const _rankToExec;
public:
Form (void);
Form (std::string const, int const, int const);
Form (const Form&);
~Form (void);
Form& operator=(const Form&);
std::string getName (void) const;
bool getIsSigned (void) const;
int const getRankToSign (void) const;
int const getRankToExec (void) const;
void beSigned (const Bureaucrat&);
class GradeTooLowException : public std::exception
{
public:
virtual const char* what (void) const throw();
};
class GradeTooHighException : public std::exception
{
public:
virtual const char* what (void) const throw();
};
};
std::ostream& operator<<(std::ostream&, const Form&);
#endif