feat: adding the finished ex03
This commit is contained in:
parent
b9c98dffda
commit
9771c8de4a
15 changed files with 965 additions and 0 deletions
33
cpp05/ex03/PresidentialPardonForm.hpp
Normal file
33
cpp05/ex03/PresidentialPardonForm.hpp
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* PresidentialPardonForm.hpp :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/03/18 11:47:54 by rparodi #+# #+# */
|
||||
/* Updated: 2025/03/18 22:53:39 by rparodi ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef PRESIDENTIALPARDONFORM_HPP
|
||||
#define PRESIDENTIALPARDONFORM_HPP
|
||||
|
||||
#include "Form.hpp"
|
||||
#include "Bureaucrat.hpp"
|
||||
|
||||
#define PRES_SIGN_GRADE 25
|
||||
#define PRES_EXEC_GRADE 5
|
||||
|
||||
class PresidentialPardonForm: public Form {
|
||||
public:
|
||||
PresidentialPardonForm();
|
||||
PresidentialPardonForm(std::string name);
|
||||
PresidentialPardonForm(PresidentialPardonForm const ©);
|
||||
PresidentialPardonForm& operator=(PresidentialPardonForm const &assign);
|
||||
virtual void execute(Bureaucrat const &executor) const;
|
||||
std::string getTarget() const;
|
||||
private:
|
||||
std::string _target;
|
||||
};
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue