-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathShrubberyCreationForm.hpp
More file actions
40 lines (33 loc) · 1.5 KB
/
ShrubberyCreationForm.hpp
File metadata and controls
40 lines (33 loc) · 1.5 KB
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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ShrubberyCreationForm.hpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: zelhajou <zelhajou@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/12/26 11:58:32 by zelhajou #+# #+# */
/* Updated: 2024/12/30 16:38:35 by zelhajou ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef SHRUBBERYCREATIONFORM_HPP
#define SHRUBBERYCREATIONFORM_HPP
#include "AForm.hpp"
#include <fstream>
class ShrubberyCreationForm : public AForm
{
private:
const std::string _target;
public:
ShrubberyCreationForm();
ShrubberyCreationForm(const std::string &target);
ShrubberyCreationForm(const ShrubberyCreationForm &src);
~ShrubberyCreationForm();
ShrubberyCreationForm &operator=(const ShrubberyCreationForm &src);
void execute(Bureaucrat const &executor) const;
class FileOpenException : public std::exception
{
public:
virtual const char *what() const throw();
};
};
#endif