feat: adding the finished ex03
This commit is contained in:
parent
b9c98dffda
commit
9771c8de4a
15 changed files with 965 additions and 0 deletions
35
cpp05/ex03/RobotomyRequestForm.hpp
Normal file
35
cpp05/ex03/RobotomyRequestForm.hpp
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* RobotomyRequestForm.hpp :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/03/19 15:52:06 by rparodi #+# #+# */
|
||||
/* Updated: 2025/03/19 15:54:51 by rparodi ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef ROBOTOMYREQUESTFORM_HPP
|
||||
#define ROBOTOMYREQUESTFORM_HPP
|
||||
|
||||
#include "Form.hpp"
|
||||
#include "Bureaucrat.hpp"
|
||||
#include <fstream>
|
||||
|
||||
#define ROBOT_SIGN_GRADE 72
|
||||
#define ROBOT_EXEC_GRADE 45
|
||||
|
||||
class RobotomyRequestForm: public Form {
|
||||
public:
|
||||
RobotomyRequestForm();
|
||||
RobotomyRequestForm(std::string name);
|
||||
RobotomyRequestForm(RobotomyRequestForm const ©);
|
||||
RobotomyRequestForm& operator=(RobotomyRequestForm 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