From c426fe76ec5925e8c94aae3db04e5e1f1ce1585e Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Mon, 19 Oct 2020 13:59:12 +0200 Subject: Adding boilerplate cpp05/ex02 --- cpp05/ex01/Form.hpp | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'cpp05/ex01/Form.hpp') diff --git a/cpp05/ex01/Form.hpp b/cpp05/ex01/Form.hpp index a2421bd..3be16f6 100644 --- a/cpp05/ex01/Form.hpp +++ b/cpp05/ex01/Form.hpp @@ -6,7 +6,7 @@ /* By: charles +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/04/14 19:19:45 by charles #+# #+# */ -/* Updated: 2020/04/14 19:37:21 by charles ### ########.fr */ +/* Updated: 2020/10/19 13:16:01 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -23,18 +23,20 @@ public: ~Form(); Form(std::string const& name); - std::string const& getName() const; - bool getSigned() const; - int getGradeSign() const; - int getGradeExecute() const; - void beSigned(Bureaucrat const& b); + + std::string const& getName() const; + bool getSigned() const; + int getGradeSign() const; + int getGradeExecute() const; + + void beSigned(Bureaucrat const& b); class GradeTooHighException : public std::exception { public: GradeTooHighException(); GradeTooHighException(GradeTooHighException const& other); - void operator=(GradeTooHighException const& other); + GradeTooHighException& operator=(GradeTooHighException const& other); ~GradeTooHighException(); virtual char const* what() const throw(); }; @@ -44,7 +46,7 @@ public: public: GradeTooLowException(); GradeTooLowException(GradeTooLowException const& other); - void operator=(GradeTooLowException const& other); + GradeTooLowException& operator=(GradeTooLowException const& other); ~GradeTooLowException(); virtual char const* what() const throw(); }; @@ -53,9 +55,9 @@ private: Form(); std::string const m_name; - bool m_signed; - int const m_gradeSign; - int const m_gradeExecute; + bool m_signed; + int const m_gradeSign; + int const m_gradeExecute; }; std::ostream& operator<<(std::ostream& out, Form const& f); -- cgit