d05 ex02 ok
This commit is contained in:
28
d05/ex02/headers/PresidentialPardonForm.hpp
Normal file
28
d05/ex02/headers/PresidentialPardonForm.hpp
Normal file
@@ -0,0 +1,28 @@
|
||||
#ifndef PRESIDENTIALPARDONFORM_HPP
|
||||
# define PRESIDENTIALPARDONFORM_HPP
|
||||
|
||||
# include "color.h"
|
||||
# include <iostream>
|
||||
# include <string>
|
||||
# include <cstdlib>
|
||||
|
||||
# include "AForm.hpp"
|
||||
|
||||
class PresidentialPardonForm : public AForm {
|
||||
|
||||
public:
|
||||
|
||||
PresidentialPardonForm( std::string target );
|
||||
PresidentialPardonForm( PresidentialPardonForm const & src );
|
||||
~PresidentialPardonForm();
|
||||
PresidentialPardonForm & operator=( PresidentialPardonForm const & rhs );
|
||||
|
||||
void formAction() const;
|
||||
|
||||
private:
|
||||
|
||||
PresidentialPardonForm();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
28
d05/ex02/headers/RobotomyRequestForm.hpp
Normal file
28
d05/ex02/headers/RobotomyRequestForm.hpp
Normal file
@@ -0,0 +1,28 @@
|
||||
#ifndef ROBOTOMYREQUESTFORM_HPP
|
||||
# define ROBOTOMYREQUESTFORM_HPP
|
||||
|
||||
# include "color.h"
|
||||
# include <iostream>
|
||||
# include <string>
|
||||
# include <cstdlib>
|
||||
|
||||
# include "AForm.hpp"
|
||||
|
||||
class RobotomyRequestForm : public AForm {
|
||||
|
||||
public:
|
||||
|
||||
RobotomyRequestForm( std::string target );
|
||||
RobotomyRequestForm( RobotomyRequestForm const & src );
|
||||
~RobotomyRequestForm();
|
||||
RobotomyRequestForm & operator=( RobotomyRequestForm const & rhs );
|
||||
|
||||
void formAction() const;
|
||||
|
||||
private:
|
||||
|
||||
RobotomyRequestForm();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -19,13 +19,9 @@ public:
|
||||
|
||||
void formAction() const;
|
||||
|
||||
// std::string getTarget() const;
|
||||
|
||||
private:
|
||||
|
||||
ShrubberyCreationForm();
|
||||
// std::string const _target;
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user